Skip to content

Commit

Permalink
TEIIDDES-1561 Exception on attempt to launch Builders. modified visit…
Browse files Browse the repository at this point in the history
…or impls to handle null languageObj instead of attempting to get delegate
  • Loading branch information
mdrillin committed Jan 11, 2013
1 parent 7d230a2 commit a9e9b76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class SQLStringVisitorImpl implements ISQLStringVisitor {

@Override
public String getSQLString(ILanguageObject languageObject) {
if(languageObject==null) return ""; //$NON-NLS-1$
LanguageObjectImpl languageObjectImpl = (LanguageObjectImpl) languageObject;
return SQLStringVisitor.getSQLString(languageObjectImpl.getDelegate());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class SQLStringVisitorImpl implements ISQLStringVisitor {

@Override
public String getSQLString(ILanguageObject languageObject) {
if(languageObject==null) return ""; //$NON-NLS-1$
LanguageObjectImpl languageObjectImpl = (LanguageObjectImpl) languageObject;
return SQLStringVisitor.getSQLString(languageObjectImpl.getDelegate());
}
Expand Down

0 comments on commit a9e9b76

Please sign in to comment.