Skip to content

Commit

Permalink
Testing if the out node really exist
Browse files Browse the repository at this point in the history
  • Loading branch information
theod committed Oct 30, 2013
1 parent c0a881b commit 12631b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/j.ui/j.ui.internals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,8 @@ void ui_return_preview(TTPtr self, SymbolPtr msg, AtomCount argc, AtomPtr argv)
if (!obj->modelOutput) {
outAdrs = obj->modelAddress.appendAddress(TTAddress("data/out"));

JamomaDirectory->getTTNode(outAdrs, &aNode);
obj->modelOutput = (TTOutputPtr)aNode->getObject();
if (!JamomaDirectory->getTTNode(outAdrs, &aNode))
obj->modelOutput = (TTOutputPtr)aNode->getObject();
}

if (obj->modelOutput) {
Expand Down

0 comments on commit 12631b7

Please sign in to comment.