Skip to content

Commit

Permalink
TEIIDDES-2010 Added check for no available schema nodes to prevent NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
blafond committed Jan 6, 2014
1 parent a23457b commit 611b350
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,10 @@ public String createResponseColumn(int type,
IStructuredSelection selection, ProcedureInfo responseInfo) {

SchemaNode node = (SchemaNode)selection.getFirstElement();
Object obj = ((SchemaNode)selection.getFirstElement()).getElement();
if( node == null )
return null;

Object obj = node.getElement();
responseInfo.setTreeModel(this.responseSchemaTreeModel);

if( !shouldCreateResponseColumn(obj) ) {
Expand Down

0 comments on commit 611b350

Please sign in to comment.