From: <bh...@us...> - 2006-09-26 19:09:32
|
Revision: 208 http://svn.sourceforge.net/cishell/?rev=208&view=rev Author: bh2 Date: 2006-09-26 12:09:27 -0700 (Tue, 26 Sep 2006) Log Message: ----------- Fixed bug with log view to fix some nasty NPEs Modified Paths: -------------- trunk/clients/gui/org.cishell.reference.gui.log/src/org/cishell/reference/gui/log/LogView.java Modified: trunk/clients/gui/org.cishell.reference.gui.log/src/org/cishell/reference/gui/log/LogView.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.log/src/org/cishell/reference/gui/log/LogView.java 2006-09-26 18:43:44 UTC (rev 207) +++ trunk/clients/gui/org.cishell.reference.gui.log/src/org/cishell/reference/gui/log/LogView.java 2006-09-26 19:09:27 UTC (rev 208) @@ -307,7 +307,7 @@ Integer offset = offsets[i]; String url = (String) offsetToUrlMap.get(offset); - if ((position >= offset.intValue()) && + if (offset != null && url != null && (position >= offset.intValue()) && (position <= (offset.intValue() + url.length()))) { overURL = true; @@ -358,7 +358,7 @@ Integer offset = offsets[i]; String url = (String) offsetToUrlMap.get(offset); - if ((clicked >= offset.intValue()) && + if (url != null && (clicked >= offset.intValue()) && (clicked <= (offset.intValue() + url.length()))) { try { Program.launch(url); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |