Skip to content

CodeInfoWithSourceInfo.compareTo throws NullPointerException if any of the compared fields are null (such as package name) #122

@CodesAway

Description

@CodesAway

Suggested fix is to add null checks via Objects.requireNonNull as part of the constructor.

For package name, if null if passed, treat as blank (don't throw error).

Need to also update the following methods to handle a blank package name correctly

  • getClassName
  • getQualifiedClassName

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions