You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by GitBox <gi...@apache.org> on 2019/06/04 13:21:25 UTC
[GitHub] [incubator-daffodil] mbeckerle opened a new pull request #226: Sick
of NPE. lexicalParent is now optLexicalParent and is Option type
mbeckerle opened a new pull request #226: Sick of NPE. lexicalParent is now optLexicalParent and is Option type
URL: https://github.com/apache/incubator-daffodil/pull/226
This small change is another incremental improvement. I was getting NPE quite a bit due to things running up the DSOM object taxonomy looking for the root which has lexicalParent pointer of null.
I've converted this to an Option type. So you can still get bad behavior of course, it's just that you get a bit more type-safety in the code.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services