Author: mvw Date: 2008-01-19 02:30:06-0800 New Revision: 14056 Modified: trunk/src_new/org/argouml/ui/StylePanelFigText.java
Log: Fix a NullPointer exception you may get when executing File->New. Modified: trunk/src_new/org/argouml/ui/StylePanelFigText.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/ui/StylePanelFigText.java?view=diff&rev=14056&p1=trunk/src_new/org/argouml/ui/StylePanelFigText.java&p2=trunk/src_new/org/argouml/ui/StylePanelFigText.java&r1=14055&r2=14056 ============================================================================== --- trunk/src_new/org/argouml/ui/StylePanelFigText.java (original) +++ trunk/src_new/org/argouml/ui/StylePanelFigText.java 2008-01-19 02:30:06-0800 @@ -1,5 +1,5 @@ // $Id$ -// Copyright (c) 1996-2006 The Regents of the University of California. All +// Copyright (c) 1996-2008 The Regents of the University of California. All // Rights Reserved. Permission to use, copy, modify, and distribute this // software and its documentation without fee, and without a written // agreement is hereby granted, provided that the above copyright notice @@ -146,6 +146,9 @@ public void refresh() { super.refresh(); FigText ft = (FigText) getPanelTarget(); + if (ft == null) { + return; + } String fontName = ft.getFontFamily(); int size = ft.getFontSize(); String styleName = STYLES[0]; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
