Author: kaiyi4
Date: Wed Aug 27 08:24:00 2008
New Revision: 2622

Modified:
   trunk/src/ca/sqlpower/architect/swingui/olap/HierarchyEditPanel.java

Log:
Its more appropriate to have nullpointer thrown here.

Modified: trunk/src/ca/sqlpower/architect/swingui/olap/HierarchyEditPanel.java
==============================================================================
--- trunk/src/ca/sqlpower/architect/swingui/olap/HierarchyEditPanel.java (original) +++ trunk/src/ca/sqlpower/architect/swingui/olap/HierarchyEditPanel.java Wed Aug 27 08:24:00 2008
@@ -96,7 +96,7 @@
"specified from the selected table, but selected table contains no primary key");
             }
         } else {
- throw new IllegalStateException("Selected source table must not be null"); + throw new NullPointerException("Selected source table must not be null");
         }
builder.append("Primary Key", primaryKeyName = new JComboBox(new Vector<SQLColumn>(pk)));

Reply via email to