Skip to content

Commit 0c4e65a

Browse files
committed
Try to recompile if there is no compile product
1 parent 8b274a0 commit 0c4e65a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

org.knime.scijava.scripting.node/src/org/knime/scijava/scripting/node/ui/SciJavaScriptingNodeDialog.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,9 @@ private JPanel createDialogPanel(final boolean clean) {
266266
m_component.remove(m_errorPanel);
267267
}
268268

269-
// only recompile if needed
270-
if (!m_settings.getScriptCode().equals(m_oldCode)) {
269+
// only recompile if code changed or compileProduct null
270+
if (!m_settings.getScriptCode().equals(m_oldCode)
271+
|| m_compileProduct == null) {
271272
m_oldCode = m_settings.getScriptCode();
272273
try {
273274
m_compileProduct = recompile(m_settings.getScriptCode(),

0 commit comments

Comments
 (0)