CodesAway / CodesAway/BEXCodeCompare

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

Open
#122 0 comments 0 reactions 1 assignee Claimed by @CodesAway View on GitHub
bug
Dominant language
Java
Stars
7
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.