Skip to content

Commit

Permalink
0003515: Null pointer in AddForeignKeyChange
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpmind-josh committed Apr 12, 2018
1 parent 2365ed2 commit c0984e7
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -70,8 +70,10 @@ public void apply(Database database, boolean caseSensitive)
newFK = (ForeignKey)_newForeignKey.clone();
Table foreignTable = database.findTable(_newForeignKey.getForeignTableName(), caseSensitive);
newFK.setForeignTable(foreignTable);
newFK.setForeignTableCatalog(foreignTable.getCatalog());
newFK.setForeignTableSchema(foreignTable.getSchema());
if (foreignTable != null) {
newFK.setForeignTableCatalog(foreignTable.getCatalog());
newFK.setForeignTableSchema(foreignTable.getSchema());
}
}
catch (CloneNotSupportedException ex)
{
Expand Down

0 comments on commit c0984e7

Please sign in to comment.