[
https://issues.apache.org/jira/browse/OFBIZ-13378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18069883#comment-18069883
]
Vitaly Repetenko edited comment on OFBIZ-13378 at 3/31/26 10:50 AM:
--------------------------------------------------------------------
Hi, Jacques!
Yes, the same problem, but not at Order List page, Order List has no sort
buttons (Up/Down arrows near field/column name).
How to reproduce:
# Open Party -> Parties
# Press Search button to find all parties
# Press Sort arrows near PARTY ID column
was (Author: JIRAUSER310609):
Hi, Jacques!
Yes, the same problem, but not at Order List page, Order List has no sorts
button (Up/Down arrows near field/column name).
How to reproduce:
# Open Party -> Parties
# Press Search button to find all parties
# Press Sort arrows near PARTY ID column
> 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
> Priority: Major
>
> 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)