Skip to content
This repository was archived by the owner on Apr 15, 2023. It is now read-only.

Commit 2fdf189

Browse files
Caught NPE
1 parent af1b0e1 commit 2fdf189

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/com/tagmycode/plugin/gui/table/SnippetsTableModel.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.tagmycode.plugin.gui.table;
22

33
import com.tagmycode.plugin.Data;
4+
import com.tagmycode.plugin.Framework;
45
import com.tagmycode.plugin.TableModelSnippetNotFoundException;
56
import com.tagmycode.sdk.model.DefaultSnippet;
67
import com.tagmycode.sdk.model.Snippet;
@@ -89,7 +90,11 @@ public Class getColumnClass(int columnIndex) {
8990
}
9091

9192
public void fireSnippetsChanged() {
92-
fireTableDataChanged();
93+
try {
94+
fireTableDataChanged();
95+
} catch (NullPointerException e) {
96+
Framework.LOGGER.debug(e);
97+
}
9398
}
9499

95100
}

0 commit comments

Comments
 (0)