9797 * http://the.bytecode.club
9898 *
9999 * TODO:
100- * Update fernflower for it's 2019 version
101100 * Finish dragging code
102101 * Finish right-click tab menu detection
103102 * make it use that global last used inside of export as jar
119118public class BytecodeViewer
120119{
121120 /*per version*/
122- public static final String VERSION = "2.9.18 " ;
121+ public static final String VERSION = "2.9.19 " ;
123122 public static String krakatauVersion = "12" ;
124123 public static String enjarifyVersion = "4" ;
125124 public static final boolean BLOCK_TAB_MENU = true ;
@@ -746,8 +745,15 @@ public static boolean compile(boolean message) {
746745 String smaliText = (String ) smali [1 ];
747746 byte [] smaliCompiled = the .bytecode .club .bytecodeviewer .compilers .Compiler .smali .compile (smaliText , origNode .name );
748747 if (smaliCompiled != null ) {
749- ClassNode newNode = JarUtils .getNode (smaliCompiled );
750- BytecodeViewer .updateNode (origNode , newNode );
748+ try
749+ {
750+ ClassNode newNode = JarUtils .getNode (smaliCompiled );
751+ BytecodeViewer .updateNode (origNode , newNode );
752+ }
753+ catch (Exception e )
754+ {
755+ e .printStackTrace ();
756+ }
751757 } else {
752758 BytecodeViewer .showMessage ("There has been an error with assembling your Smali code, please check this. Class: " + origNode .name );
753759 BytecodeViewer .viewer .setIcon (false );
@@ -767,8 +773,15 @@ public static boolean compile(boolean message) {
767773 String krakatauText = (String ) krakatau [1 ];
768774 byte [] krakatauCompiled = the .bytecode .club .bytecodeviewer .compilers .Compiler .krakatau .compile (krakatauText , origNode .name );
769775 if (krakatauCompiled != null ) {
770- ClassNode newNode = JarUtils .getNode (krakatauCompiled );
771- BytecodeViewer .updateNode (origNode , newNode );
776+ try
777+ {
778+ ClassNode newNode = JarUtils .getNode (krakatauCompiled );
779+ BytecodeViewer .updateNode (origNode , newNode );
780+ }
781+ catch (Exception e )
782+ {
783+ e .printStackTrace ();
784+ }
772785 } else {
773786 BytecodeViewer .showMessage ("There has been an error with assembling your Krakatau Bytecode, please check this. Class: " + origNode .name );
774787 BytecodeViewer .viewer .setIcon (false );
@@ -791,8 +804,15 @@ public static boolean compile(boolean message) {
791804
792805 byte [] javaCompiled = the .bytecode .club .bytecodeviewer .compilers .Compiler .java .compile (javaText , origNode .name );
793806 if (javaCompiled != null ) {
794- ClassNode newNode = JarUtils .getNode (javaCompiled );
795- BytecodeViewer .updateNode (origNode , newNode );
807+ try
808+ {
809+ ClassNode newNode = JarUtils .getNode (javaCompiled );
810+ BytecodeViewer .updateNode (origNode , newNode );
811+ }
812+ catch (Exception e )
813+ {
814+ e .printStackTrace ();
815+ }
796816 errConsole .finished ();
797817 } else {
798818 errConsole .pretty ();
0 commit comments