This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 201380
Collapse All | Expand All

(-)a/db/src/org/netbeans/modules/db/explorer/node/SchemaNodeProvider.java (-3 / +9 lines)
Lines 150-158 Link Here
150
150
151
        @Override
151
        @Override
152
        public int compare(Node node1, Node node2) {
152
        public int compare(Node node1, Node node2) {
153
            assert node1.getDisplayName() != null : node1 + " has display name.";
153
            String d1 = node1.getDisplayName();
154
            assert node2.getDisplayName() != null : node2 + " has display name.";
154
            String d2 = node2.getDisplayName();
155
            return node1.getDisplayName().compareToIgnoreCase(node2.getDisplayName());
155
            if(d1 == null) {
156
                d1 = "";
157
            }
158
            if(d2 == null) {
159
                d2 = "";
160
            }
161
            return d1.compareToIgnoreCase(d2);
156
        }
162
        }
157
163
158
    }
164
    }

Return to bug 201380