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

Completion doesn't work (ctrl+space) #740

Open
mistermax80 opened this issue May 21, 2023 · 3 comments
Open

Completion doesn't work (ctrl+space) #740

mistermax80 opened this issue May 21, 2023 · 3 comments

Comments

@mistermax80
Copy link

When I try to press ctr+space, this thow exception (only in android mode):
java.lang.NullPointerException: Cannot invoke "javax.swing.ImageIcon.getIconWidth()" because "processing.mode.java.CompletionPanel.classIcon" is null
at processing.mode.java.CompletionPanel.(CompletionPanel.java:141)
at processing.mode.java.JavaTextArea.showSuggestion(JavaTextArea.java:520)
at processing.mode.java.JavaTextArea.lambda$fetchPhrase$0(JavaTextArea.java:332)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

@ranaaditya
Copy link
Member

Hi @mistermax80 , seems to be a swing issue but needs confirmation.

According to the error logs you pasted - maybe swing API issue with current Java version or some image icon not found issue Null pointer issue. Can you check if image it's trying to access is present or not in your local ?

Thanks,
Aditya

@abhijit-23blaze
Copy link

hi @mistermax80 ,
make sure that you are not inadvertently setting the classIcon field of the CompletionPanel to null before invoking getIconWidth()

Thanks,
Abhijit

@mistermax80
Copy link
Author

Hi guys,
i'm using processing as user, now i try with 4.3 version but the issue it is present:
image

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

3 participants