Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36ac089

Browse files
fixed NPE on project creating
1 parent 0ef9586 commit 36ac089

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

OCaml/META-INF/plugin.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
<id>OCamlSupport</id>
2323
<description>OCaml language support</description>
2424
<change-notes><![CDATA[
25+
<h3>&nbsp;OCaml Support v0.9.6</h3>
26+
<ul>
27+
<li>Fixed NPE on project creating</li>
28+
</ul>
2529
<h3>&nbsp;OCaml Support v0.9.5</h3>
2630
<ul>
2731
<li>Context-dependent code completion for keywords</li>
@@ -47,7 +51,7 @@
4751
<li>Quotes and backspace handlers</li>
4852
</ul>
4953
]]></change-notes>
50-
<version>0.9.5</version>
54+
<version>0.9.6</version>
5155
<vendor email="[email protected]" logo="/img/ocaml-small.png">Maxim Manuylov</vendor>
5256
<category>Custom Languages</category>
5357
<idea-version since-build="10000"/>

OCamlSources/src/manuylov/maxim/ocaml/module/OCamlModuleType.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ public ModuleWizardStep[] createWizardSteps(final WizardContext wizardContext,
5050
final ArrayList<ModuleWizardStep> steps = new ArrayList<ModuleWizardStep>();
5151
steps.add(new OCamlSourcesPathStep(moduleBuilder, null, null));
5252
steps.add(new OCamlSdkSelectStep(moduleBuilder, null, null, wizardContext.getProject()));
53-
steps.add(ProjectWizardStepFactory.getInstance().createSupportForFrameworksStep(wizardContext, moduleBuilder));
53+
final ModuleWizardStep supportForFrameworksStep = ProjectWizardStepFactory.getInstance().createSupportForFrameworksStep(wizardContext, moduleBuilder);
54+
if (supportForFrameworksStep != null) {
55+
steps.add(supportForFrameworksStep);
56+
}
5457
return steps.toArray(new ModuleWizardStep[steps.size()]);
5558
}
5659

0 commit comments

Comments
 (0)