From fc1da2077a0aaaf19b979b8149e835cf7d48dda9 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 7 Jul 1999 11:31:11 +0000 Subject: [PATCH] fixed some bugs git-svn-id: https://svn.code.sf.net/p/jode/code/branches/stable@1044 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/TransformExceptionHandlers.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jode/jode/flow/TransformExceptionHandlers.java b/jode/jode/flow/TransformExceptionHandlers.java index 94319f1..e327058 100644 --- a/jode/jode/flow/TransformExceptionHandlers.java +++ b/jode/jode/flow/TransformExceptionHandlers.java @@ -77,6 +77,12 @@ public class TransformExceptionHandlers { /* ...Last sort by typecode signature. Shouldn't happen to often. */ + if (type == second.type) + return 0; + if (type == null) + return -1; + if (second.type == null) + return 1; return type.getTypeSignature() .compareTo(second.type.getTypeSignature()); } @@ -845,7 +851,7 @@ public class TransformExceptionHandlers { FlowBlock catchFlow = exc.handler; boolean isMultiUsed = catchFlow.predecessors.size() != 0; - if (!isMultiUsed) { + if (!isMultiUsed && next != null) { for (Iterator j = handlers.tailSet(next).iterator(); j.hasNext();) { Handler h = (Handler) j.next();