mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE (when label contains text only)
This commit is contained in:
+1
@@ -41,6 +41,7 @@ public class LabelTextReplacingUtil {
|
||||
if (child instanceof JLabel) {
|
||||
final JLabel label = (JLabel)child;
|
||||
String oldText = label.getText();
|
||||
if (oldText == null) continue;
|
||||
String newText = StringUtil.replace(oldText, "$PRODUCT$", ApplicationNamesInfo.getInstance().getProductName());
|
||||
newText = StringUtil.replace(newText, "$FULLNAME$", ApplicationNamesInfo.getInstance().getFullProductName());
|
||||
label.setText(newText);
|
||||
|
||||
Reference in New Issue
Block a user