You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "mridulpathak (via GitHub)" <gi...@apache.org> on 2026/10/28 13:25:17 UTC

[PR] Fixed: Grid or form extending a missing parent in the same file fails with a NullPointerException (OFBIZ-13765) [ofbiz-framework]

mridulpathak opened a new pull request, #2480:
URL: https://github.com/apache/ofbiz-framework/pull/2480

   When a grid or form extends a name that is neither a grid nor a form in the same file, ModelGrid.getParentModel and ModelSingleForm.getParentModel fell back to the other widget type with findFirst().orElseGet(null), which calls the null supplier and throws a NullPointerException, so the widget failed to load instead of logging that the parent was not found and continuing without one. Both methods now use orElse(null), and ModelFormTest covers a grid and a form extending a missing parent.
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fixed: Grid or form extending a missing parent in the same file fails with a NullPointerException (OFBIZ-13765) [ofbiz-framework]

Posted by "mridulpathak (via GitHub)" <gi...@apache.org>.
mridulpathak merged PR #2480:
URL: https://github.com/apache/ofbiz-framework/pull/2480


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@ofbiz.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org