safety check

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@285 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 553b1a9e0f
commit cc2d7294c0
  1. 2
      jode/jode/flow/TransformConstructors.java

@ -37,7 +37,7 @@ public class TransformConstructors {
StructuredBlock[] sb = new StructuredBlock[constrCount];
for (int i=0; i< constrCount; ) {
FlowBlock header = cons[i].getMethodHeader();
if (!header.hasNoJumps())
if (header == null || !header.hasNoJumps())
return;
sb[i] = cons[i].getMethodHeader().block;
// Decompiler.err.println("constr "+i+": "+sb[i]);

Loading…
Cancel
Save