Skip to content

Commit

Permalink
fixed null pointer issue in ReporterManager, fixes HaxeCheckstyle#517
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexHaxe committed Jan 3, 2023
1 parent 4bdebcc commit edbbf5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/checkstyle/Message.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ typedef Message = MessageLocation & {
var moduleName:String;
var categories:Array<Category>;
var points:Int;
@:optional var related:Array<MessageLocation>;
var related:Array<MessageLocation>;
};

typedef MessageLocation = {
Expand Down
2 changes: 1 addition & 1 deletion src/checkstyle/reporter/ReporterManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class ReporterManager {
desc: "",
code: '$e',
message: '$step failed: $e\nPlease file a github issue at https://github.com/HaxeCheckstyle/haxe-checkstyle/issues',
related: null
related: []
};
}
}
Expand Down

0 comments on commit edbbf5f

Please sign in to comment.