IDEMPIERE-2751:potential wrong status of info window
fix NPE when load general info
This commit is contained in:
parent
bdeb9727be
commit
e99cff2f02
|
@ -481,6 +481,8 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
||||||
infoWindow = MInfoWindow.get(p_tableName, (String)null);
|
infoWindow = MInfoWindow.get(p_tableName, (String)null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (infoWindow == null)
|
||||||
|
return;
|
||||||
if (!infoWindow.isValid()) {
|
if (!infoWindow.isValid()) {
|
||||||
infoWindow = null;
|
infoWindow = null;
|
||||||
} else {
|
} else {
|
||||||
|
@ -2048,6 +2050,8 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
protected int getADWindowID() {
|
protected int getADWindowID() {
|
||||||
|
if(infoWindow == null)
|
||||||
|
return 0;
|
||||||
String isSOTrx = Env.getContext(Env.getCtx(), p_WindowNo, "IsSOTrx");
|
String isSOTrx = Env.getContext(Env.getCtx(), p_WindowNo, "IsSOTrx");
|
||||||
if (!isLookup() && Util.isEmpty(isSOTrx)) {
|
if (!isLookup() && Util.isEmpty(isSOTrx)) {
|
||||||
isSOTrx = "Y";
|
isSOTrx = "Y";
|
||||||
|
|
Loading…
Reference in New Issue