[Fb-contrib-commit] SF.net SVN: fb-contrib: [615] trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/de
Brought to you by:
dbrosius
From: <dbr...@us...> - 2006-08-14 05:07:12
|
Revision: 615 Author: dbrosius Date: 2006-08-13 22:07:07 -0700 (Sun, 13 Aug 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=615&view=rev Log Message: ----------- guard against npes Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LostExceptionStackTrace.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LostExceptionStackTrace.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LostExceptionStackTrace.java 2006-08-14 05:00:38 UTC (rev 614) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/LostExceptionStackTrace.java 2006-08-14 05:07:07 UTC (rev 615) @@ -183,9 +183,11 @@ LocalVariableTable lvt = getMethod().getLocalVariableTable(); if (lvt != null) { LocalVariable lv = lvt.getLocalVariable(reg, pc); - int finish = lv.getStartPC() + lv.getLength(); - if (finish < catchInfo.getFinish()) - catchInfo.setFinish(finish); + if (lv != null) { + int finish = lv.getStartPC() + lv.getLength(); + if (finish < catchInfo.getFinish()) + catchInfo.setFinish(finish); + } } break; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |