Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gui: NPE after renaming model file (*.jm) #16

Closed
vsgfe opened this issue Sep 25, 2019 · 3 comments
Closed

Gui: NPE after renaming model file (*.jm) #16

vsgfe opened this issue Sep 25, 2019 · 3 comments

Comments

@vsgfe
Copy link
Contributor

vsgfe commented Sep 25, 2019

Description of the Issue

I opened a model file and saved it, then closed Jailer. I noticed an error in the file name so I renamed the file on the file system. I started Jailer again, it tried to load the recent file list and could not find the file. An error message with stack trace appeared

Steps to Reproduce the Issue

  1. open a jm-file
  2. save it
  3. close Jailer
  4. rename jm-file
  5. start Jailer again

Expected Behavior

remove missing files from the recent file list and continue to start Jailer.

Actual Behavior

NPE:
Help Desk: https://sourceforge.net/p/jailer/discussion/
Mail: rwisser@users.sourceforge.net

Jailer 8.8.8.2

java.lang.NullPointerException
at net.sf.jailer.ui.DataModelManagerDialog.initJMTable(DataModelManagerDialog.java:682)
at net.sf.jailer.ui.DataModelManagerDialog.(DataModelManagerDialog.java:269)
at net.sf.jailer.ui.ExtractionModelFrame$70.(ExtractionModelFrame.java:2152)
at net.sf.jailer.ui.ExtractionModelFrame.createFrame(ExtractionModelFrame.java:2152)
at net.sf.jailer.ui.ExtractionModelFrame$69.run(ExtractionModelFrame.java:2074)
at java.awt.event.InvocationEvent.dispatch$$$capture(InvocationEvent.java:311)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at net.sf.jailer.ui.Environment$JEventQueue.dispatchEvent(Environment.java:116)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Debug Information

Jailer 8.8.8.2, current source from github, commit c04a7ad

Wisser pushed a commit that referenced this issue Sep 25, 2019
@Wisser
Copy link
Owner

Wisser commented Sep 25, 2019

Thank you @vsgfe for the bug report. I've fixed that in the master.

@vsgfe
Copy link
Contributor Author

vsgfe commented Sep 25, 2019

Wow, that was fast! It works now, thank you!

@Wisser
Copy link
Owner

Wisser commented Oct 4, 2019

Fixed in release 9.0.

@Wisser Wisser closed this as completed Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants