Skip to content
Snippets Groups Projects
Commit c5be16e3 authored by Stéphane  DALLONGEVILLE's avatar Stéphane DALLONGEVILLE
Browse files

To avoid possible NPE here

parent e00bd2a2
No related branches found
No related tags found
No related merge requests found
package plugins.adufour.ezplug;
import icy.resource.ResourceUtil;
import icy.system.thread.ThreadUtil;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
......@@ -23,6 +20,8 @@ import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import icy.resource.ResourceUtil;
import icy.system.thread.ThreadUtil;
import plugins.adufour.vars.gui.VarEditor;
import plugins.adufour.vars.gui.model.ValueSelectionModel;
import plugins.adufour.vars.gui.model.VarEditorModel;
......@@ -384,7 +383,8 @@ public abstract class EzVar<T> extends EzComponent implements VarListener<T>
jLabelName.setEnabled(enabled);
getVarEditor().setEnabled(enabled);
updateVisibilityChain();
SwingUtilities.invokeLater(getUI().fullPackingTask);
if (getUI() != null)
SwingUtilities.invokeLater(getUI().fullPackingTask);
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment