Commits

mabe02  committed 992fe3b Merge

Contribution from Steve:
* Check for null on incoming styles

  • Participants
  • Parent commits 696fd83, 459021a
  • Branches jre142-branch

Comments (0)

Files changed (1)

File src/org/lantern/gui/TextGraphics.java

         if(string.length() + column > areaSize.getColumns())
             string = string.substring(0, areaSize.getColumns() - column);
 
-        Set stylesSet = new HashSet(Arrays.asList(styles));
+        Set stylesSet = new HashSet();
+        if(styles != null && styles.length > 0)
+            stylesSet.addAll(Arrays.asList(styles));
         
         if(currentlyBold)
             stylesSet.add(Terminal.Style.Bold);