Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032480Openbravo ERPA. Platformpublic2016-03-15 13:312022-02-01 08:05
inigosanchez 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
 
 
Core
No
0032480: NPE is thrown if filter of property column is used.
NPE is thrown if filter of property column is used. In createSetQueryService() method, there is a piece of code like this:
final Entity distinctEntity = distinctProperty.getTargetEntity();
In this case it is not possible to reach target entity because distinctProperty is 'ADField.property' and 'property' uses SelectorFieldPropertyDataSource.
1.- Log in ERP as System Administrator.
2.- Go to Windows, Tabs, and Fields window and select 'Windows, Tabs, and Fields' record.
3.- Go to Tab subtab and select 'Tab' record.
4.- Go to Field subtab and type any text value in the filter of Property column.

Null pointer exception is thrown:
[http-8080-6] ERROR org.openbravo.service.json.DefaultJsonDataService -
java.lang.NullPointerException
    at org.openbravo.service.json.DefaultJsonDataService.createSetQueryService(DefaultJsonDataService.java:433)
    at org.openbravo.service.json.DefaultJsonDataService.createSetQueryService(DefaultJsonDataService.java:321)
    at org.openbravo.service.json.DefaultJsonDataService.fetch(DefaultJsonDataService.java:150)
    at org.openbravo.service.datasource.DefaultDataSourceService.fetch(DefaultDataSourceService.java:74)
No tags attached.
Issue History
2016-03-15 13:31inigosanchezNew Issue
2016-03-15 13:31inigosanchezAssigned To => platform
2016-03-15 13:31inigosanchezModules => Core
2016-03-15 13:31inigosanchezTriggers an Emergency Pack => No
2016-03-18 08:28alostaleStatusnew => acknowledged
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.