FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Completion doesn't work (ctrl+space) · Issue #740 · processing/processing-android · GitHub

Repository navigation

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

Open

Description

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)

Activity

  1. ranaaditya commented on Jul 15, 2023

    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

  2. abhijit-23blaze commented on Oct 17, 2023

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

    Thanks,
    Abhijit

  3. mistermax80 commented on Nov 23, 2023

    Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL