Revision: 4005
Author: [email protected]
Date: Wed Dec  1 09:15:40 2010
Log: This fixes several tests: When you create a new tablepane in the new value maker, it isn't in a playpen so it can't get the font from it because of null pointer exception.
http://code.google.com/p/power-architect/source/detail?r=4005

Modified:
 /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPenComponent.java

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPenComponent.java Wed Dec 1 09:08:22 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/swingui/PlayPenComponent.java Wed Dec 1 09:15:40 2010
@@ -481,6 +481,7 @@

     @Transient @Accessor
     public Font getFont() {
+        if(getPlayPen() == null) return null;
         return getPlayPen().getFont();
     }

Reply via email to