BF [ 1836908 ] Report customize NPE when no window access
* organized imports
* added serialVersionUID property
This commit is contained in:
teo_sarca 2008-12-13 08:25:59 +00:00
parent 0bcab23d1f
commit a9ea822b34
1 changed files with 17 additions and 8 deletions

View File

@ -16,13 +16,14 @@
*****************************************************************************/
package org.compiere.apps;
import java.awt.*;
import java.awt.event.*;
import java.awt.BorderLayout;
import java.awt.Image;
import java.awt.event.WindowEvent;
import org.compiere.model.*;
import org.compiere.util.*;
import org.compiere.swing.*;
import org.compiere.db.*;
import org.compiere.model.MQuery;
import org.compiere.swing.CFrame;
import org.compiere.util.CLogger;
import org.compiere.util.Env;
/**
* Main Application Window.
@ -31,9 +32,14 @@ import org.compiere.db.*;
*
* @author Jorg Janke
* @version $Id: AWindow.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
*
* @author Teo Sarca, www.arhipac.ro
* <li>BF [ 1836908 ] Report customize NPE when no window access
*/
public class AWindow extends CFrame
{
private static final long serialVersionUID = 1L;
/**
* Standard Constructor - requires initWindow
*/
@ -80,7 +86,10 @@ public class AWindow extends CFrame
setAD_Window_ID(AD_Window_ID);
//
boolean loadedOK = m_APanel.initPanel (0, AD_Window_ID, query);
if (loadedOK)
{
commonInit();
}
return loadedOK;
} // initWindow