Skip to content

Commit 8c418c9

Browse files
authored
Merge pull request #217 from egonw/fix/noFullName
[PV3.4] Fixes a exception that blocks closing the property dialog
2 parents bf232c0 + b82db44 commit 8c418c9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

modules/org.pathvisio.core/src/org/pathvisio/core/model/PathwayElement.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,9 @@ public void setStaticProperty(StaticProperty key, Object value)
10051005
}
10061006
else
10071007
{
1008-
setDataSource(DataSource.getExistingByFullName((String)value));
1008+
if (DataSource.fullNameExists((String)value)) {
1009+
setDataSource(DataSource.getExistingByFullName((String)value));
1010+
}
10091011
}
10101012
break;
10111013
case TYPE:

0 commit comments

Comments
 (0)