[ 1836908 ] Report customize NPE when no window access
https://sourceforge.net/tracker/?func=detail&atid=879332&aid=1836908&group_id=176962
This commit is contained in:
parent
8c16065fc0
commit
4de491bac5
|
|
@ -110,6 +110,7 @@ import org.compiere.util.ValueNamePair;
|
||||||
*
|
*
|
||||||
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
|
||||||
* <li>FR [ 1762466 ] Add "Window" menu to report viewer.
|
* <li>FR [ 1762466 ] Add "Window" menu to report viewer.
|
||||||
|
* <li>BF [ 1836908 ] Report customize NPE when no window access
|
||||||
* <li>FR [ 1894640 ] Report Engine: Excel Export support
|
* <li>FR [ 1894640 ] Report Engine: Excel Export support
|
||||||
* @author victor.perez@e-evolution.com
|
* @author victor.perez@e-evolution.com
|
||||||
* <li>FR [ 1966328 ] New Window Info to MRP and CRP into View http://sourceforge.net/tracker/index.php?func=detail&aid=1966328&group_id=176962&atid=879335
|
* <li>FR [ 1966328 ] New Window Info to MRP and CRP into View http://sourceforge.net/tracker/index.php?func=detail&aid=1966328&group_id=176962&atid=879335
|
||||||
|
|
@ -1146,9 +1147,12 @@ public class Viewer extends CFrame
|
||||||
new AWindowListener (win, this); // forwards Window Events
|
new AWindowListener (win, this); // forwards Window Events
|
||||||
int AD_Window_ID = 240; // hardcoded
|
int AD_Window_ID = 240; // hardcoded
|
||||||
int AD_PrintFormat_ID = m_reportEngine.getPrintFormat().get_ID();
|
int AD_PrintFormat_ID = m_reportEngine.getPrintFormat().get_ID();
|
||||||
win.initWindow(AD_Window_ID, MQuery.getEqualQuery("AD_PrintFormat_ID", AD_PrintFormat_ID));
|
boolean loadedOK = win.initWindow(AD_Window_ID, MQuery.getEqualQuery("AD_PrintFormat_ID", AD_PrintFormat_ID));
|
||||||
AEnv.addToWindowManager(win);
|
if (loadedOK)
|
||||||
AEnv.showCenterScreen(win);
|
{
|
||||||
|
AEnv.addToWindowManager(win);
|
||||||
|
AEnv.showCenterScreen(win);
|
||||||
|
}
|
||||||
// see windowStateChanged for applying change
|
// see windowStateChanged for applying change
|
||||||
} // cmd_customize
|
} // cmd_customize
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue