svn commit: r15977 - branches/BRANCH_0_26_x/src/argouml-app/src/org/argouml/persistence/ProfileConfigurationFilePersister.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: penyaskito
Date: 2008-11-07 02:27:16-0800
New Revision: 15977

Modified:
   branches/BRANCH_0_26_x/src/argouml-app/src/org/argouml/persistence/ProfileConfigurationFilePersister.java

Log:
Issue 5428: User profiles: projects that use them don't load

Modified: branches/BRANCH_0_26_x/src/argouml-app/src/org/argouml/persistence/ProfileConfigurationFilePersister.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/BRANCH_0_26_x/src/argouml-app/src/org/argouml/persistence/ProfileConfigurationFilePersister.java?view=diff&rev=15977&p1=branches/BRANCH_0_26_x/src/argouml-app/src/org/argouml/persistence/ProfileConfigurationFilePersister.java&p2=branches/BRANCH_0_26_x/src/argouml-app/src/org/argouml/persistence/ProfileConfigurationFilePersister.java&r1=15976&r2=15977
==============================================================================
--- branches/BRANCH_0_26_x/src/argouml-app/src/org/argouml/persistence/ProfileConfigurationFilePersister.java	(original)
+++ branches/BRANCH_0_26_x/src/argouml-app/src/org/argouml/persistence/ProfileConfigurationFilePersister.java	2008-11-07 02:27:16-0800
@@ -219,7 +219,8 @@
             if (candidateProfile instanceof UserDefinedProfile) {
                 UserDefinedProfile userProfile = 
                     (UserDefinedProfile) candidateProfile;
-                if (userProfile.getDisplayName().equals(fileName)) {
+                if (userProfile.getModelFile() != null
+                    && fileName.equals(userProfile.getModelFile().getName())) {
                     return userProfile;
                 }
             }
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.