We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 309dc33 commit 487a40eCopy full SHA for 487a40e
src/main/java/org/scijava/script/ScriptModule.java
@@ -123,6 +123,13 @@ public ScriptInfo getInfo() {
123
124
@Override
125
public void run() {
126
+ // HACK: Work around code (Groovy!) assuming
127
+ // context class loader can't be null.
128
+ final ClassLoader cl = Thread.currentThread().getContextClassLoader();
129
+ if (cl == null) {
130
+ Thread.currentThread().setContextClassLoader(Context.getClassLoader());
131
+ }
132
+
133
final ScriptEngine engine = getEngine();
134
final String path = getInfo().getPath();
135
0 commit comments