BF [ 1891775 ] NPE on GrindWindowVO when no access
This commit is contained in:
parent
77269ce5d8
commit
e235d6daaf
|
@ -167,11 +167,11 @@ public class GridWindowVO implements Serializable
|
||||||
}
|
}
|
||||||
// Ensure ASP exceptions
|
// Ensure ASP exceptions
|
||||||
MRole role = MRole.getDefault(ctx, false);
|
MRole role = MRole.getDefault(ctx, false);
|
||||||
if (role.getWindowAccess(vo.AD_Window_ID) == null)
|
if (vo != null && role.getWindowAccess(vo.AD_Window_ID) == null)
|
||||||
vo = null; // Not found
|
vo = null; // Not found
|
||||||
if (vo == null)
|
if (vo == null)
|
||||||
{
|
{
|
||||||
CLogger.get().log(Level.SEVERE, "No Window - AD_Window_ID=" + vo.AD_Window_ID
|
CLogger.get().log(Level.SEVERE, "No Window - AD_Window_ID=" + AD_Window_ID
|
||||||
+ ", AD_Role_ID=" + AD_Role_ID + " - " + sql);
|
+ ", AD_Role_ID=" + AD_Role_ID + " - " + sql);
|
||||||
CLogger.get().saveError("AccessTableNoView", "(Not found)");
|
CLogger.get().saveError("AccessTableNoView", "(Not found)");
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue