[Fb-contrib-commit] SF.net SVN: fb-contrib: [820] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib/
Brought to you by:
dbrosius
From: <dbr...@us...> - 2007-02-02 05:18:11
|
Revision: 820 http://svn.sourceforge.net/fb-contrib/?rev=820&view=rev Author: dbrosius Date: 2007-02-01 21:18:10 -0800 (Thu, 01 Feb 2007) Log Message: ----------- guard against npes Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/SuspiciousJDKVersionUse.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/SuspiciousJDKVersionUse.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/SuspiciousJDKVersionUse.java 2007-02-02 05:15:46 UTC (rev 819) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/SuspiciousJDKVersionUse.java 2007-02-02 05:18:10 UTC (rev 820) @@ -176,13 +176,15 @@ } } - String wantedMethod = getNameConstantOperand() + getSigConstantOperand(); - if (methodInfos.contains(wantedMethod)) - return true; - else if ("java/lang/Object".equals(clsName)) - return false; - else - return isValid(validMethods, superNames.get(clsName)); + if (methodInfos != null) { + String wantedMethod = getNameConstantOperand() + getSigConstantOperand(); + if (methodInfos.contains(wantedMethod)) + return true; + else if ("java/lang/Object".equals(clsName)) + return false; + else + return isValid(validMethods, superNames.get(clsName)); + } } finally { if (is != null) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |