Revision: 19967
          http://sourceforge.net/p/gate/code/19967
Author:   markagreenwood
Date:     2017-01-18 11:55:36 +0000 (Wed, 18 Jan 2017)
Log Message:
-----------
make sure the value we try and convert into a tooltip isn't null before doing 
string manipulation

Modified Paths:
--------------
    gate/trunk/src/main/gate/gui/LuceneDataStoreSearchGUI.java

Modified: gate/trunk/src/main/gate/gui/LuceneDataStoreSearchGUI.java
===================================================================
--- gate/trunk/src/main/gate/gui/LuceneDataStoreSearchGUI.java  2017-01-18 
02:23:23 UTC (rev 19966)
+++ gate/trunk/src/main/gate/gui/LuceneDataStoreSearchGUI.java  2017-01-18 
11:55:36 UTC (rev 19967)
@@ -3156,8 +3156,8 @@
           break;
         case ResultTableModel.RESULT_COLUMN:
         case ResultTableModel.FEATURES_COLUMN:
-          if(((String)value).length() > ResultTableModel.MAX_COL_WIDTH) {
-            tip = (String)value;
+          tip = value != null ? (String)value : "";
+          if(tip.length() > ResultTableModel.MAX_COL_WIDTH) {            
             if(tip.length() > 1000) {
               tip =
                       tip.substring(0, 1000 / 2) + "<br>...<br>"

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GATE-cvs mailing list
GATE-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to