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

NPE in openImageGallery on simulator #740

Closed
codenameone opened this issue Mar 27, 2015 · 3 comments
Closed

NPE in openImageGallery on simulator #740

codenameone opened this issue Mar 27, 2015 · 3 comments

Comments

@codenameone
Copy link
Collaborator

Original issue 740 created by codenameone on 2013-06-12T18:50:22.000Z:

  1. I have a following code
    Display.getInstance().openImageGallery(new ActionListener()
    {
    public void actionPerformed(ActionEvent evt)
    {
    }
    }
  2. I click some button and openImageGallery is called
  3. I get the following stacktrace and file dialog does not open

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at sun.awt.shell.Win32ShellFolder2$1.call(Win32ShellFolder2.java:230)
at sun.awt.shell.Win32ShellFolder2$1.call(Win32ShellFolder2.java:225)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at sun.awt.shell.Win32ShellFolderManager2$ComInvoker$3.run(Win32ShellFolderManager2.java:492)
at java.lang.Thread.run(Thread.java:662)

Win7 x64

@codenameone
Copy link
Collaborator Author

Comment #1 originally posted by codenameone on 2013-06-12T18:59:55.000Z:

Fing Sun/Oracle:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6973685
This bug is ancient. Are you using JDK 7?
Assigning to Chen since he uses a Windows machine, might be worthwhile to use AWT file chooser like we do on the Mac (its actually WAYYY better on the Mac).

@codenameone
Copy link
Collaborator Author

Comment #2 originally posted by codenameone on 2013-06-12T19:38:09.000Z:

I'm using jdk1.7.0_21

@codenameone
Copy link
Collaborator Author

Comment #3 originally posted by codenameone on 2013-06-13T12:28:24.000Z:

changed the file chooser to AWT FileDialog which is much better on windows too.

@codenameone codenameone removed their assignment Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants