Make Krakatau and Enjarify work offline lol

This commit is contained in:
ItzSomebody 2018-01-30 09:38:39 -08:00
parent cf8930d6b0
commit b1dd56b217
2 changed files with 5 additions and 1 deletions

3
src/META-INF/MANIFEST.MF Normal file
View file

@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: the.bytecode.club.bytecodeviewer.BytecodeViewer

View file

@ -72,7 +72,8 @@ public class LDCSearch implements SearchTypeDetails {
.iterator(); .iterator();
while (instructions.hasNext()) { while (instructions.hasNext()) {
final AbstractInsnNode insnNode = instructions.next(); final AbstractInsnNode insnNode = instructions.next();
if (insnNode instanceof LdcInsnNode) { if (insnNode instanceof LdcInsnNode
&& ((LdcInsnNode) insnNode).cst instanceof String) {
final LdcInsnNode ldcObject = ((LdcInsnNode) insnNode); final LdcInsnNode ldcObject = ((LdcInsnNode) insnNode);
final String ldcString = ldcObject.cst.toString(); final String ldcString = ldcObject.cst.toString();
String desc2 = method.desc; String desc2 = method.desc;