diff --git a/findbugs/src/java/edu/umd/cs/findbugs/detect/FindDeadLocalStores.java b/findbugs/src/java/edu/umd/cs/findbugs/detect/FindDeadLocalStores.java
index <HASH>..<HASH> 100644
--- a/findbugs/src/java/edu/umd/cs/findbugs/detect/FindDeadLocalStores.java
+++ b/findbugs/src/java/edu/umd/cs/findbugs/detect/FindDeadLocalStores.java
@@ -99,6 +99,12 @@ public class FindDeadLocalStores implements Detector {
 			if (!isStore(location))
 				continue;
 
+			// Ignore exception handler blocks:
+			// javac always stores caught exceptions in
+			// a local, even if the value is not used.
+			if (location.getBasicBlock().isExceptionHandler())
+				continue;
+
 			IndexedInstruction store = (IndexedInstruction) location.getHandle().getInstruction();
 			int local = store.getIndex();
Ignore dead local stores in exception handler blocks:
javac always stores caught exceptions in a local, even if the
exception is ignored.


git-svn-id: <URL>