Revision: 3869
Author: [email protected]
Date: Wed Aug 11 12:03:09 2010
Log: FIXED - bug 2935: Cannot undo after reverse engineering from a
database on a server project
http://trillian.sqlpower.ca/bugzilla/show_bug.cgi?id=2935
The snapshot hierarchy listener will no longer attempt to listen to nulls.
http://code.google.com/p/power-architect/source/detail?r=3869
Modified:
/trunk/src/main/java/ca/sqlpower/architect/SPObjectSnapshotHierarchyListener.java
=======================================
---
/trunk/src/main/java/ca/sqlpower/architect/SPObjectSnapshotHierarchyListener.java
Tue Aug 10 13:58:36 2010
+++
/trunk/src/main/java/ca/sqlpower/architect/SPObjectSnapshotHierarchyListener.java
Wed Aug 11 12:03:09 2010
@@ -261,6 +261,7 @@
* This type is a type that is a snapshot of a system type
used in a column.
*/
private void addUpdateListener(UserDefinedSQLType
upstreamSnapshotType) {
+ if (upstreamSnapshotType == null) return; // Happens on undo.
SnapshotCollection collection =
session.getWorkspace().getSnapshotCollection();