AnalyseSI don't save your project if you don't type the file extension ".asi"

Bug #489240 reported by Thomas Pierson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AnalyseSI
Fix Released
Medium
Bruno Dabo

Bug Description

Hi,

I started a new project on AnalyseSI and after 1 hours of work, I decide to save my project.
So I clicked on "Save" button, I chose the folder and I simply type the name of my project.
I click on "save". The "save window" disappeared and none error message occured.
It seem to be correctly saved and I can continue to work.
After that, I closed AnalyseSI.
But in fact, no project files was created into the save directory!
I have lost all my work!

So I tryed to understand why AnalyseSI don't save my project.
And I remark that the saving process works fine when I type the file extension ".asi" manualy.

I think you should propose a file extension automatically to the user and inform him when his project is not saved.

(I have make a screencast video of this bug.)

Best regards,

Thomas Pierson

Revision history for this message
Thomas Pierson (8mabmzqcnyc1g4i7tj-mvmyh4f-clubl5mz6ldresgvti-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :
Revision history for this message
Arnaud JACQUEMIN (arnaud-jacquemin) wrote :

Thanks for the report!

Confirmed here with AnalyseSI 7.1 and OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu12).

Save doesn't work if the user doesn't type the .asi file extension. There's no warning in the UI, but the following Exception is thrown :

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at org.analyse.core.util.save.AnalyseSave.saveAs(AnalyseSave.java:153)
        at org.analyse.core.util.save.AnalyseSave.save(AnalyseSave.java:101)
        at org.analyse.core.gui.action.MainActionListener.actionPerformed(MainActionListener.java:100)
        at org.analyse.core.gui.action.BasicAction.actionPerformed(BasicAction.java:61)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
        at java.awt.Component.processMouseEvent(Component.java:6108)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:5873)
        at java.awt.Container.processEvent(Container.java:2105)
        at java.awt.Component.dispatchEventImpl(Component.java:4469)
        at java.awt.Container.dispatchEventImpl(Container.java:2163)
        at java.awt.Component.dispatchEvent(Component.java:4295)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
        at java.awt.Container.dispatchEventImpl(Container.java:2149)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4295)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

Changed in analysesi:
status: New → Confirmed
Bruno Dabo (bruno.dabo)
Changed in analysesi:
assignee: nobody → AnalyseSI Team (analysesi)
Bruno Dabo (bruno.dabo)
Changed in analysesi:
status: Confirmed → In Progress
Bruno Dabo (bruno.dabo)
Changed in analysesi:
importance: Undecided → Medium
assignee: AnalyseSI Team (analysesi) → Bruno Dabo (bruno.dabo)
Revision history for this message
Bruno Dabo (bruno.dabo) wrote :

Résolu dans la release 0.7.2

Changed in analysesi:
milestone: none → 0.72
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.