issue_484: Null pointer passed to DPLParserCatalystVisitor#485
issue_484: Null pointer passed to DPLParserCatalystVisitor#485Abigael-JT wants to merge 10 commits intoteragrep:mainfrom
Conversation
Abigael-JT
commented
Jan 24, 2025
- throw an exception when DPLParserCatalystContext is missing instead of passing a Null pointer to DPLParserCatalystVisitor
- return NullNode instead of null
elliVM
left a comment
There was a problem hiding this comment.
Change looks good. Some changes requested to improve code quality
|
Removed DPLParserCatalystContext null check, added ifInfoEnabled guard to logger messages with method call and removed commented code |
|
Found an issue in testing when |
51-code
left a comment
There was a problem hiding this comment.
Seems good. I don't think there is a solution that can avoid instanceof calls for this.
eemhu
left a comment
There was a problem hiding this comment.
Would it be a good alternative to add isStub() or similar method to the Node interface, and NullNode would return true, otherwise false? This way it could be used instead of using instanceof checks?
|
added isStub() method to Node interface and rebased |
|
Rebased |
|
Rebased |
…emoved commented code
… is NullNode before casting to ColumnNode
… have Nullnode return true