VanillaCompilerWorker throws NPE in (aono) ThreePathScanner visitNewClass
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 26
### What happened
While opening a NetBeans module with NetBeans, you get an error bulb in the status line.
The stacktrace included in the report mentions that nc.clazz.type is null in that case.
### Language / Project Type / NetBeans Component
java source base
### How to reproduce
Open a NetBeans module.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
ubuntu 24.04
### JDK
jdk 17 & 21
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
Should add stack trace, but lost that after analyzing.
### Are you willing to submit a pull request?
Yes
Contributor guide
Research direction
Start by opening a NetBeans module on Ubuntu 24.04 with JDK 17 or 21 and reproduce the error bulb. Inspect VanillaCompilerWorker and ThreePathScanner.visitNewClass, focusing on the reported null nc.clazz.type; done means opening the module no longer produces the NPE or error bulb.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100