summaryrefslogtreecommitdiff
path: root/libjava/classpath/javax/swing/DefaultListCellRenderer.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/javax/swing/DefaultListCellRenderer.java')
-rw-r--r--libjava/classpath/javax/swing/DefaultListCellRenderer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/classpath/javax/swing/DefaultListCellRenderer.java b/libjava/classpath/javax/swing/DefaultListCellRenderer.java
index 9a8e07071b5..598627fac35 100644
--- a/libjava/classpath/javax/swing/DefaultListCellRenderer.java
+++ b/libjava/classpath/javax/swing/DefaultListCellRenderer.java
@@ -93,7 +93,7 @@ public class DefaultListCellRenderer extends JLabel
int index, boolean isSelected,
boolean cellHasFocus)
{
- String s = value.toString();
+ String s = value != null ? value.toString() : "";
setText(s);
setOpaque(true);
setHorizontalAlignment(LEFT);