IDEMPIERE-2483: Fixing NPE

This commit is contained in:
Deepak Pansheriya 2015-03-25 19:20:01 +05:30
parent 1e85ef81ad
commit 54daecd218
1 changed files with 1 additions and 1 deletions

View File

@ -684,7 +684,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount)
Record_ID = -1; Record_ID = -1;
} }
Boolean canAccess = null; Boolean canAccess = null;
if (Record_ID >= 0) { if (Record_ID >= 0 && mTable != null) {
int AD_Window_ID = Env.getZoomWindowID(mTable.get_ID(), Record_ID); int AD_Window_ID = Env.getZoomWindowID(mTable.get_ID(), Record_ID);
canAccess = MRole.getDefault().getWindowAccess(AD_Window_ID); canAccess = MRole.getDefault().getWindowAccess(AD_Window_ID);
} }