IDEMPIERE-913 NPE when saving query with look-up field not visible on window / thanks to Anthony Sossah (xolali)
it solves also IDEMPIERE-916 NPE in Tab : Included Roles
This commit is contained in:
parent
0855c6e79c
commit
5400d30443
|
@ -34,6 +34,8 @@ public class DefaultLookupFactory implements ILookupFactory{
|
||||||
@Override
|
@Override
|
||||||
public Lookup getLookup(GridFieldVO gridFieldVO) {
|
public Lookup getLookup(GridFieldVO gridFieldVO) {
|
||||||
Lookup lookup = null;
|
Lookup lookup = null;
|
||||||
|
if (gridFieldVO.lookupInfo == null) // IDEMPIERE-913
|
||||||
|
gridFieldVO.loadLookupInfo();
|
||||||
if (gridFieldVO.displayType == Location) // not cached
|
if (gridFieldVO.displayType == Location) // not cached
|
||||||
{
|
{
|
||||||
lookup = new MLocationLookup (gridFieldVO.ctx, gridFieldVO.WindowNo);
|
lookup = new MLocationLookup (gridFieldVO.ctx, gridFieldVO.WindowNo);
|
||||||
|
|
|
@ -234,6 +234,7 @@ public class GridField
|
||||||
*/
|
*/
|
||||||
public Lookup getLookup()
|
public Lookup getLookup()
|
||||||
{
|
{
|
||||||
|
if (m_lookup == null) loadLookupFromFactory(); // IDEMPIERE-913
|
||||||
return m_lookup;
|
return m_lookup;
|
||||||
} // getLookup
|
} // getLookup
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue