mbien commented on code in PR #8213: URL: https://github.com/apache/netbeans/pull/8213#discussion_r1936554863
########## platform/core.multitabs/src/org/netbeans/core/multitabs/impl/DocumentSwitcherTable.java: ########## @@ -113,9 +111,14 @@ public Component prepareRenderer( TableCellRenderer renderer, int row, int colum } else { if(null != folderNameDecorator && null != item) { TabData tab = item.getTabData(); - if(null != tab) { - itemText = folderNameDecorator.getText(tab) + (item.isActive() ? " ←" : ""); //NOI18N - lbl.setText(itemText); + if (null != tab) { + String decorated = folderNameDecorator.getText(tab); + if (decorated != null) { + if (item.isActive()) { + decorated += " ←"; //NOI18N + } + lbl.setText(decorated); Review Comment: original version of the code before adding the extra decorator: https://github.com/apache/netbeans/blob/9f212e884d314ae221e25fcc721aaeb7dcad40c6/platform/core.multitabs/src/org/netbeans/core/multitabs/impl/DocumentSwitcherTable.java#L97-L124 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists