NPE fix under Windows
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7263 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -120,7 +120,8 @@ public class TextColumnDescriptor extends SimpleColumnDescriptor {
|
||||
if (event.index != columnIndex) return;
|
||||
|
||||
String text = textFor((TreeItem)event.item, getter);
|
||||
|
||||
if (text == null) text = "";
|
||||
|
||||
Point size = event.gc.textExtent(text);
|
||||
event.width = size.x + 2 * (3);
|
||||
// event.height = Math.max(event.height, size.y + (3));
|
||||
|
Reference in New Issue
Block a user