We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7becb32 commit 90c73eaCopy full SHA for 90c73ea
src/main/java/org/scijava/plugins/scripting/java/MainJavaRunner.java
@@ -48,7 +48,7 @@
48
@Plugin(type = JavaRunner.class, priority = Priority.LOW_PRIORITY)
49
public class MainJavaRunner extends AbstractJavaRunner {
50
51
- @Parameter
+ @Parameter(required = false)
52
private LogService log;
53
54
// -- JavaRunner methods --
@@ -83,11 +83,11 @@ private Method getMain(final Class<?> c) {
83
return c.getMethod("main", String[].class);
84
}
85
catch (final SecurityException exc) {
86
- log.debug(exc);
+ if (log != null) log.debug(exc);
87
return null;
88
89
catch (final NoSuchMethodException exc) {
90
91
92
93
0 commit comments