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 — NullPointerException when trying to open designer · pmd/pmd · Discussion #4215

NullPointerException when trying to open designer #4215

Answered by jsotuyod
jfeingold35 asked this question in Q&A
NullPointerException when trying to open designer #4215
@jfeingold35 jfeingold35
Nov 15, 2022 · 1 comments · 1 reply
Answered by jsotuyod Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

jfeingold35
Nov 15, 2022

Here's my setup:

  • Macbook w/M1 card
  • Java v12.0.2
  • PMD v6.50.0
    No matter what, I can't get the rule designer to open. I've tried using multiple different versions of JavaFX, but no matter what version I used, when I run bin/run.sh designer, I always get:
Exception in thread "main" java.lang.NullPointerException: inStream parameter is null
	at java.base/java.util.Objects.requireNonNull(Objects.java:246)
	at java.base/java.util.Properties.load(Properties.java:403)
	at net.sourceforge.pmd.util.fxdesigner.DesignerStarter.getJavaFxVersion(DesignerStarter.java:116)
	at net.sourceforge.pmd.util.fxdesigner.DesignerStarter.isCompatibleJavaFxVersion(DesignerStarter.java:100)
	at net.sourceforge.pmd.util.fxdesigner.DesignerStarter.launchGui(DesignerStarter.java:153)
	at net.sourceforge.pmd.util.fxdesigner.DesignerStarter.main(DesignerStarter.java:86)

I can't find any indication about what this means or how I can fix it. I'm hoping someone here can help.

You must be logged in to vote
All reactions
Answered by jsotuyod Nov 15, 2022

@jfeingold35 yes, I fear there is a bug, that is fixed on master and will be part of the next release. In the meantime, you can manually patch your run.sh to fix this, as per this comment: #4153 (reply in thread)

View full answer

Replies: 1 comment · 1 reply

Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

jsotuyod
Nov 15, 2022
Maintainer

@jfeingold35 yes, I fear there is a bug, that is fixed on master and will be part of the next release. In the meantime, you can manually patch your run.sh to fix this, as per this comment: #4153 (reply in thread)

You must be logged in to vote
All reactions
1 reply
@adangel
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

adangel Nov 17, 2022
Maintainer

Fixed via #4161 - changes: b9737e2#diff-241060b32521ce12777403e220a996146f6907a400114b2a51b5373dbf8e95ffR162-R167

This will be available with PMD 6.52.0

All reactions
Answer selected by adangel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
a:bug PMD crashes or fails to analyse a file.
3 participants
@jfeingold35 @jsotuyod @adangel
You are visitor 01402775 — 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.