Revision: 8040
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=8040&view=rev
Author:   dnaber
Date:     2012-09-14 19:42:55 +0000 (Fri, 14 Sep 2012)
Log Message:
-----------
avoid NullPointerException - could happen with renamed rules (the English 
whitespace/comma rule was just renamed, because it is now a subclass of a 
generic whitespace/comma rule)

Modified Paths:
--------------
    trunk/JLanguageTool/src/main/java/org/languagetool/gui/ResultArea.java

Modified: trunk/JLanguageTool/src/main/java/org/languagetool/gui/ResultArea.java
===================================================================
--- trunk/JLanguageTool/src/main/java/org/languagetool/gui/ResultArea.java      
2012-09-14 19:40:30 UTC (rev 8039)
+++ trunk/JLanguageTool/src/main/java/org/languagetool/gui/ResultArea.java      
2012-09-14 19:42:55 UTC (rev 8040)
@@ -122,7 +122,7 @@
         continue;
       }
       final Rule rule = getRuleForId(ruleId);
-      if (rule.isDefaultOff()) {
+      if (rule == null || rule.isDefaultOff()) {
         continue;
       }
       if (i++ > 0) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to