Skip to content

Commit 036c07f

Browse files
committed
Fix Heavy exporter dialog crashes
1 parent d688d20 commit 036c07f

6 files changed

Lines changed: 6 additions & 0 deletions

File tree

Source/Heavy/CppExporter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class CppExporter final : public ExporterBase {
2424
void setState(DynamicObject::Ptr globalState) override
2525
{
2626
auto const state = globalState->getProperty("cpp").getDynamicObject();
27+
if(!state) return;
2728
inputPatchValue = state->getProperty("input_patch_value");
2829
projectNameValue = state->getProperty("project_name_value");
2930
projectCopyrightValue = state->getProperty("project_copyright_value");

Source/Heavy/DPFExporter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class DPFExporter final : public ExporterBase {
9696
void setState(DynamicObject::Ptr globalState) override
9797
{
9898
auto const state = globalState->getProperty("dpf").getDynamicObject();
99+
if(!state) return;
99100
inputPatchValue = state->getProperty("input_patch_value");
100101
projectNameValue = state->getProperty("project_name_value");
101102
projectCopyrightValue = state->getProperty("project_copyright_value");

Source/Heavy/DaisyExporter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ class DaisyExporter final : public ExporterBase {
121121
void setState(DynamicObject::Ptr globalState) override
122122
{
123123
auto const state = globalState->getProperty("daisy").getDynamicObject();
124+
if(!state) return;
124125
inputPatchValue = state->getProperty("input_patch_value");
125126
projectNameValue = state->getProperty("project_name_value");
126127
projectCopyrightValue = state->getProperty("project_copyright_value");

Source/Heavy/OWLExporter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class OWLExporter final : public ExporterBase {
6565
void setState(DynamicObject::Ptr globalState) override
6666
{
6767
auto const state = globalState->getProperty("owl").getDynamicObject();
68+
if(!state) return;
6869
inputPatchValue = state->getProperty("input_patch_value");
6970
projectNameValue = state->getProperty("project_name_value");
7071
projectCopyrightValue = state->getProperty("project_copyright_value");

Source/Heavy/PdExporter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class PdExporter final : public ExporterBase {
4040
void setState(DynamicObject::Ptr globalState) override
4141
{
4242
auto const state = globalState->getProperty("pdext").getDynamicObject();
43+
if(!state) return;
4344
inputPatchValue = state->getProperty("input_patch_value");
4445
projectNameValue = state->getProperty("project_name_value");
4546
projectCopyrightValue = state->getProperty("project_copyright_value");

Source/Heavy/WASMExporter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class WASMExporter final : public ExporterBase {
3737
void setState(DynamicObject::Ptr globalState) override
3838
{
3939
auto const state = globalState->getProperty("wasm").getDynamicObject();
40+
if(!state) return;
4041
inputPatchValue = state->getProperty("input_patch_value");
4142
projectNameValue = state->getProperty("project_name_value");
4243
projectCopyrightValue = state->getProperty("project_copyright_value");

0 commit comments

Comments
 (0)