Changeset 5876


Ignore:
Timestamp:
2003-11-18T15:32:28+13:00 (20 years ago)
Author:
jmt12
Message:

The tooltip formatter should no longer crash and burn on null strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r5807 r5876  
    356356     */
    357357    static public String formatHTMLWidth(String text, int width) {
     358    if(text == null) {
     359        return "Error";
     360    }
    358361    HTMLStringTokenizer html = new HTMLStringTokenizer(text);
    359362    int current_width = 0;
Note: See TracChangeset for help on using the changeset viewer.