GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Completion doesn't work (ctrl+space) · Issue #740 · processing/processing-android

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

New issue
Copy link
New issue
Copy link
Open
Open
Completion doesn't work (ctrl+space)#740
Copy link
Labels
good first issueneeds confirmation

Description

@mistermax80
mistermax80
opened on May 21, 2023
Issue body actions

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)

Reacted by Aditya Rana and Prabhakar Raj

Activity

  1. ranaaditya commented on Jul 15, 2023

    @ranaaditya
    ranaaditya
    on Jul 15, 2023
    Member
    More actions

    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. ranaaditya
    added
    needs confirmation
    good first issue
    on Jul 15, 2023
  3. abhijit-23blaze commented on Oct 17, 2023

    @abhijit-23blaze
    abhijit-23blaze
    on Oct 17, 2023
    More actions

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

    Thanks,
    Abhijit

  4. mistermax80 commented on Nov 23, 2023

    @mistermax80
    mistermax80
    on Nov 23, 2023
    Author
    More actions

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueneeds confirmation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.