apache / apache/netbeans

Module Java Refactoring threw java.lang.IllegalStateException: java.lang.NullPointerException.

Open
#3,800 2 comments 0 reactions 0 assignees View on GitHub
Java kind:bug nb-javac needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 13

### What happened

Refactor->Move of one java source file to another project.
[messages.log](https://github.com/apache/netbeans/files/8283964/messages.log)

### How to reproduce

Refactor->Move a java source file from one project to another project and different target Source Package.

### Did this work correctly in an earlier version?

Apache NetBeans 12.6

### Operating System

windows 10, version 21H2, OS Build 19044.1586

### JDK

1.8.0_312; OpenJDK 64-Bit Server VM 25.312-b07; Amazon.com Inc.

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

Upgraded to Netbeans 13 today and moved 6 java sources to another project. Error occurred for all moves. However, move succeeded.

### Are you willing to submit a pull request?

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

Start with the attached messages.log and reproduce the Refactor->Move operation from one project and Source Package to another. Investigate the move workflow for the reported IllegalStateException and NullPointerException; done means moving the Java source succeeds without throwing the error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.