[Fb-contrib-commit] fb-contrib/src/com/mebigfatguy/fbcontrib/detect FinalParameters.java,1.6,1.7
Brought to you by:
dbrosius
|
From: Dave B. <dbr...@us...> - 2005-10-29 22:01:56
|
Update of /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31473/src/com/mebigfatguy/fbcontrib/detect Modified Files: FinalParameters.java Log Message: guard against other npes Index: FinalParameters.java =================================================================== RCS file: /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/FinalParameters.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- FinalParameters.java 29 Oct 2005 21:54:11 -0000 1.6 +++ FinalParameters.java 29 Oct 2005 22:01:48 -0000 1.7 @@ -147,6 +147,8 @@ return; for (int i = methodLine; i <= methodStart; i++) { + if ((i < 0) || (i >= sourceLines.length)) + return; line = sourceLines[i]; if (line.indexOf("final") >= 0) return; |