bug fix for exceptionLocal == null case

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1099 379699f6-c40d-0410-875b-85095c16579e
branch_1_1
jochen 26 years ago
parent c2ec44a43b
commit b462a21ed6
  1. 2
      jode/jode/flow/CatchBlock.java.in

@ -145,6 +145,7 @@ public class CatchBlock extends StructuredBlock {
* If we are unlucky the exceptionLocal is used outside of * If we are unlucky the exceptionLocal is used outside of
* this block. In that case we do a transformation. * this block. In that case we do a transformation.
*/ */
if (exceptionLocal != null) {
if (declare.contains(exceptionLocal)) if (declare.contains(exceptionLocal))
declare.remove(exceptionLocal); declare.remove(exceptionLocal);
else { else {
@ -161,6 +162,7 @@ public class CatchBlock extends StructuredBlock {
exceptionLocal = dummyLocal; exceptionLocal = dummyLocal;
} }
} }
}
public void dumpInstruction(jode.decompiler.TabbedPrintWriter writer) public void dumpInstruction(jode.decompiler.TabbedPrintWriter writer)
throws java.io.IOException { throws java.io.IOException {

Loading…
Cancel
Save