You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2026/04/01 15:48:00 UTC
[jira] [Closed] (OFBIZ-13378) Pressing sort button in any UI view will end with NPE
[ https://issues.apache.org/jira/browse/OFBIZ-13378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux closed OFBIZ-13378.
-----------------------------------
Fix Version/s: 24.09.06
Resolution: Fixed
> Pressing sort button in any UI view will end with NPE
> -----------------------------------------------------
>
> Key: OFBIZ-13378
> URL: https://issues.apache.org/jira/browse/OFBIZ-13378
> Project: OFBiz
> Issue Type: Bug
> Components: ALL APPLICATIONS
> Affects Versions: 24.09.05
> Environment: java 17
> macOS
> Reporter: Vitaly Repetenko
> Assignee: Jacques Le Roux
> Priority: Major
> Fix For: 24.09.06
>
>
> Pressing sort button for field ends with error:
> java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "object" is null org.apache.ofbiz.webapp.control.ControlFilter.doFilter(ControlFilter.java:188) javax.servlet.http.HttpFilter.doFilter(HttpFilter.java:53) org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:70)
>
> if ( (object.getClass().equals(String.class)
> || object instanceof Collection))
>
> need to be:
>
> if ( object != null && (object.getClass().equals(String.class) \|\| object instanceof Collection))
--
This message was sent by Atlassian Jira
(v8.20.10#820010)