Browse files

Added null check to tooltip text

Solves bug 2031
  • Loading branch information...
1 parent aabe7ac commit 29c8242ed82a5f96ff38e77fc74d5a148dd180a8 Arvid Berg committed Jun 29, 2010
View
2 ...lipse.cdk.jchempaint/src/net/bioclipse/cdk/jchempaint/widgets/JChemPaintEditorWidget.java
@@ -289,7 +289,7 @@ protected String getText( Event event ) {
atomType);
}else {
String text = rmodel.getToolTipText( atom );
- return text.length()!=0?text:null;
+ return text!=null&&text.length()!=0?text:null;
}
}
}

0 comments on commit 29c8242

Please sign in to comment.