svn commit: r16687 - trunk/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java

Tom Morris <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2009-01-23 09:13:06-0800
New Revision: 16687

Modified:
   trunk/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java

Log:
RESOLVED - issue 5655: Projects with no profiles can't be saved 
http://argouml.tigris.org/issues/show_bug.cgi?id=5655

Modified: trunk/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java?view=diff&pathrev=16687&r1=16686&r2=16687
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/persistence/UmlFilePersister.java	2009-01-23 09:13:06-0800
@@ -1,5 +1,5 @@
 // $Id$
-// Copyright (c) 1996-2008 The Regents of the University of California. All
+// Copyright (c) 1996-2009 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
@@ -815,14 +815,14 @@
         }
 
         /**
-         * Flush the stream.  This will throw an IllegalStateException if the
-         * stream is flushed before the header is completely processed.
+         * Flush the stream. If the stream is flushed before the header is
+         * completely processed, whatever has been written so far will get
+         * processed before the flush.
          */
         @Override
         public void flush() throws IOException {
             if (!headerProcessed) {
-                throw new IllegalStateException(
-                        "Attempted flush while still processing header");
+                processHeader();
             }
             out.flush();
         }

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=1045091

To unsubscribe from this discussion, e-mail: [[email protected]].
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.