IDEMPIERE-2751:potential wrong status of info window

fix NPE when load general info
This commit is contained in:
hieplq 2015-08-10 00:18:11 +08:00
parent bdeb9727be
commit e99cff2f02
1 changed files with 4 additions and 0 deletions

View File

@ -481,6 +481,8 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
infoWindow = MInfoWindow.get(p_tableName, (String)null);
}
if (infoWindow == null)
return;
if (!infoWindow.isValid()) {
infoWindow = null;
} else {
@ -2048,6 +2050,8 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
* @return
*/
protected int getADWindowID() {
if(infoWindow == null)
return 0;
String isSOTrx = Env.getContext(Env.getCtx(), p_WindowNo, "IsSOTrx");
if (!isLookup() && Util.isEmpty(isSOTrx)) {
isSOTrx = "Y";