Skip to content

Commit

Permalink
Merge pull request #230 from rubenporras/master
Browse files Browse the repository at this point in the history
Fix ClassCastException when lazy loading node model from binary
  • Loading branch information
rubenporras authored Apr 3, 2019
2 parents 8c6dd44 + 0eaabf7 commit 6f5fc07
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ private static ProxyCompositeNode uninstallProxyNode(final EObject eObject) {
for (int i = 0; i < size; ++i) {
Adapter adapter = adapters.get(i);
if (adapter.isAdapterForType(ProxyCompositeNode.class)) {
return (ProxyCompositeNode) adapters.remove(i);
if (adapter instanceof ProxyCompositeNode) {
return (ProxyCompositeNode) adapters.remove(i);
}
break;
}
}
return null;
Expand Down

0 comments on commit 6f5fc07

Please sign in to comment.