Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028018Openbravo ERPA. Platformpublic2014-10-29 19:272014-12-30 23:25
caristu 
inigosanchez 
highminoralways
closedfixed 
5
 
3.0PR15Q13.0PR15Q1 
alostale
Core
No
0028018: Uncaught null pointer exception when using obuisel_selectors based on datasource
The following exception is raised in the log:

"ERROR org.openbravo.userinterface.selector.SelectorDefaultFilterActionHandler - Error generating Default Filter action result: null
java.lang.NullPointerException ..."

after opening the grid view of an obuisel_selector based on a datasource

1) Go to the [Reference] window, look for the OBUISEL_SelectorFieldPropertySelector and navigate to the [Defined selector field]. Check the "show in grid" checkbox. This way we'll be able to open the grid for this selector
2) Rebuild the application and restart tomcat
3) Go to the [Reference] window and create a new reference of Tree Reference type.
4) Navigate to the [Tree Reference] tab and create a new record.
5) Navigate to the [Tree Field] window. Click on the magnifying glass of the property selector. The error appears in the log.
The exception is thrown on line 69 of the SelectorDefaultFilterActionHandler class:

sel.getTable().getName();

sel.getTable() is null because this kind of selector definition does not use a table but a datasource
No tags attached.
Issue History
2014-10-29 19:27caristuNew Issue
2014-10-29 19:27caristuAssigned To => AugustoMauch
2014-10-29 19:27caristuModules => Core
2014-10-29 19:27caristuResolution time => 1417474800
2014-10-29 19:27caristuTriggers an Emergency Pack => No
2014-10-29 19:28caristuIssue Monitored: networkb
2014-11-11 17:07alostaleAssigned ToAugustoMauch => inigosanchez
2014-11-20 09:48inigosanchezIssue Monitored: alostale
2014-11-20 09:49inigosanchezResolutionopen => fixed
2014-11-20 09:51inigosanchezReview Assigned To => alostale
2014-11-20 09:52hgbotCheckin
2014-11-20 09:52hgbotNote Added: 0071843
2014-11-20 09:52hgbotStatusnew => resolved
2014-11-20 09:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/130e3a63dcc29438f97db13154c13594fb50ec1b [^]
2014-11-24 13:32alostaleNote Added: 0071936
2014-11-24 13:32alostaleStatusresolved => closed
2014-11-24 13:32alostaleFixed in Version => 3.0PR15Q1
2014-12-30 23:25hudsonbotCheckin
2014-12-30 23:25hudsonbotNote Added: 0073114

Notes
(0071843)
hgbot   
2014-11-20 09:52   
Repository: erp/devel/pi
Changeset: 130e3a63dcc29438f97db13154c13594fb50ec1b
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Thu Nov 20 09:50:36 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/130e3a63dcc29438f97db13154c13594fb50ec1b [^]

Fixes issue 28018:Null pointer exception when using obuisel_selectors

An uncaught null pointer exception when using obuisel_selectors based on datasource.
The exception is thrown on the SelectorDefaultFilterActionHandler class.
In some cases this happens when this kind of selector definition does not use a table but a datasource.


This has been fixed and now it can obtain the name of a table based on datasource too.

---
M modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/SelectorDefaultFilterActionHandler.java
---
(0071936)
alostale   
2014-11-24 13:32   
code reviewed

tested following the steps to reproduce
(0073114)
hudsonbot   
2014-12-30 23:25   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6525fe229e06 [^]
Maturity status: Test