Revision: 7151
http://languagetool.svn.sourceforge.net/languagetool/?rev=7151&view=rev
Author: dnaber
Date: 2012-06-02 00:36:52 +0000 (Sat, 02 Jun 2012)
Log Message:
-----------
don't crash when rule has no category (happened only in test case so far)
Modified Paths:
--------------
trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
Modified: trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
2012-06-02 00:31:10 UTC (rev 7150)
+++ trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
2012-06-02 00:36:52 UTC (rev 7151)
@@ -561,7 +561,8 @@
continue;
}
- if (disabledCategories.contains(rule.getCategory().getName())) {
+ final Category category = rule.getCategory();
+ if (category != null && disabledCategories.contains(category.getName()))
{
continue;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs