Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028018
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminoralways2014-10-29 19:272014-12-30 23:25
ReportercaristuView Statuspublic 
Assigned Toinigosanchez 
PriorityhighResolutionfixedFixed in Version3.0PR15Q1
StatusclosedFix in branchFixed in SCM revision130e3a63dcc2
ProjectionnoneETAnoneTarget Version3.0PR15Q1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028018: Uncaught null pointer exception when using obuisel_selectors based on datasource

DescriptionThe 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

Steps To Reproduce1) 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.
Proposed SolutionThe 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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0071843)
hgbot (developer)
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 (manager)
2014-11-24 13:32

code reviewed

tested following the steps to reproduce
(0073114)
hudsonbot (developer)
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

- Issue History
Date Modified Username Field Change
2014-10-29 19:27 caristu New Issue
2014-10-29 19:27 caristu Assigned To => AugustoMauch
2014-10-29 19:27 caristu Modules => Core
2014-10-29 19:27 caristu Resolution time => 1417474800
2014-10-29 19:27 caristu Triggers an Emergency Pack => No
2014-10-29 19:28 caristu Issue Monitored: networkb
2014-11-11 17:07 alostale Assigned To AugustoMauch => inigosanchez
2014-11-20 09:48 inigosanchez Issue Monitored: alostale
2014-11-20 09:49 inigosanchez Resolution open => fixed
2014-11-20 09:51 inigosanchez Review Assigned To => alostale
2014-11-20 09:52 hgbot Checkin
2014-11-20 09:52 hgbot Note Added: 0071843
2014-11-20 09:52 hgbot Status new => resolved
2014-11-20 09:52 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/130e3a63dcc29438f97db13154c13594fb50ec1b [^]
2014-11-24 13:32 alostale Note Added: 0071936
2014-11-24 13:32 alostale Status resolved => closed
2014-11-24 13:32 alostale Fixed in Version => 3.0PR15Q1
2014-12-30 23:25 hudsonbot Checkin
2014-12-30 23:25 hudsonbot Note Added: 0073114


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker