From: <sh...@us...> - 2009-03-12 19:06:55
|
Revision: 14764 http://jedit.svn.sourceforge.net/jedit/?rev=14764&view=rev Author: shlomy Date: 2009-03-12 19:06:35 +0000 (Thu, 12 Mar 2009) Log Message: ----------- Catch a number format exception when reading global output. Modified Paths: -------------- plugins/GlobalPlugin/trunk/browser/GlobalRecord.java Modified: plugins/GlobalPlugin/trunk/browser/GlobalRecord.java =================================================================== --- plugins/GlobalPlugin/trunk/browser/GlobalRecord.java 2009-03-12 15:11:02 UTC (rev 14763) +++ plugins/GlobalPlugin/trunk/browser/GlobalRecord.java 2009-03-12 19:06:35 UTC (rev 14764) @@ -31,7 +31,13 @@ return fields[0]; } public int getLine() { - return Integer.parseInt(fields[1]); + int line = 0; + try { + line = Integer.parseInt(fields[1]); + } catch (Exception e) { + // Number format exception ... + } + return line; } public String getFile() { return fields[2]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |