svn commit: r15617 - trunk/src/argouml-app/src/org/argouml/profile/internal/ProfileManagerImpl.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-08-26 20:39:56-0700
New Revision: 15617

Modified:
   trunk/src/argouml-app/src/org/argouml/profile/internal/ProfileManagerImpl.java

Log:
Issue 5346: Fix NullPointerException in synthetic test case

Modified: trunk/src/argouml-app/src/org/argouml/profile/internal/ProfileManagerImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/profile/internal/ProfileManagerImpl.java?view=diff&rev=15617&p1=trunk/src/argouml-app/src/org/argouml/profile/internal/ProfileManagerImpl.java&p2=trunk/src/argouml-app/src/org/argouml/profile/internal/ProfileManagerImpl.java&r1=15616&r2=15617
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/profile/internal/ProfileManagerImpl.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/profile/internal/ProfileManagerImpl.java	2008-08-26 20:39:56-0700
@@ -260,7 +260,8 @@
         Profile found = null;
         
         // If we found an old-style name, update it to the new package name
-        if (profileClass.startsWith(OLD_PROFILE_PACKAGE)) {
+        if (profileClass != null 
+                && profileClass.startsWith(OLD_PROFILE_PACKAGE)) {
             profileClass = profileClass.replace(OLD_PROFILE_PACKAGE,
                     NEW_PROFILE_PACKAGE);
         }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.