apache / apache/netbeans

VanillaCompilerWorker throws NPE in (aono) ThreePathScanner visitNewClass

Open
#8,699 1 comment 0 reactions 0 assignees View on GitHub
Java kind:bug needs:triage
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.