We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48e9559 commit b0d0862Copy full SHA for b0d0862
src/main/java/org/scijava/plugins/scripting/matlab/DefaultMATLABService.java
@@ -127,10 +127,12 @@ private synchronized void createCommandVariables() {
127
* MATLAB.
128
*/
129
private void removeCommandVariables() {
130
- for (final MATLABCommands command : getInstances()) {
131
- final String name = command.getInfo().getName();
+ if (initializedCommands) {
+ for (final MATLABCommands command : getInstances()) {
132
+ final String name = command.getInfo().getName();
133
- makeMATLABVariable(name, null);
134
+ makeMATLABVariable(name, null);
135
+ }
136
}
137
138
0 commit comments