"fastfix" diagram can be ipened now, got exceptions before the fix with closed reader
1.1 --- a/uml.drawingarea/src/org/netbeans/modules/uml/drawingarea/persistence/DiagramLoader.java Tue Jun 28 16:36:36 2011 -0400
1.2 +++ b/uml.drawingarea/src/org/netbeans/modules/uml/drawingarea/persistence/DiagramLoader.java Thu Dec 27 01:48:53 2012 +0400
1.3 @@ -172,22 +172,26 @@
1.4 catch (XMLStreamException ex)
1.5 {
1.6 Exceptions.printStackTrace(ex);
1.7 + try
1.8 + {
1.9 + reader.close();
1.10 + }
1.11 + catch (Exception ex2)
1.12 + {
1.13 + Exceptions.printStackTrace(ex);
1.14 + }
1.15 }
1.16 catch (FileNotFoundException ex)
1.17 {
1.18 Exceptions.printStackTrace(ex);
1.19 - }
1.20 - finally
1.21 - {
1.22 try
1.23 {
1.24 reader.close();
1.25 }
1.26 - catch (Exception ex)
1.27 + catch (Exception ex2)
1.28 {
1.29 Exceptions.printStackTrace(ex);
1.30 }
1.31 -
1.32 }
1.33 return success;
1.34 }