mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix NPE that breaks everything
This commit is contained in:
@@ -96,7 +96,7 @@ class StatusPanel extends JPanel {
|
||||
@Override
|
||||
public void run() {
|
||||
String text = myLogMessage;
|
||||
if (myDirty || System.currentTimeMillis() - myLogTime.getTime() >= DateFormatUtil.MINUTE) {
|
||||
if (myLogTime != null && (myDirty || System.currentTimeMillis() - myLogTime.getTime() >= DateFormatUtil.MINUTE)) {
|
||||
text += " (" + StringUtil.decapitalize(DateFormatUtil.formatPrettyDateTime(myLogTime)) + ")";
|
||||
}
|
||||
myTextPanel.setText(text);
|
||||
|
||||
Reference in New Issue
Block a user