IDEMPIERE-2191:Product info >>Available to promise >>Show detail NPE

This commit is contained in:
hieplq 2014-09-06 15:16:52 +07:00
parent d6e96b3f05
commit 27a945963f
1 changed files with 3 additions and 2 deletions

View File

@ -290,8 +290,9 @@ public class InfoProductWindow extends InfoWindow {
public void onEvent(Event event) throws Exception { public void onEvent(Event event) throws Exception {
if (contentPanel.getLayout() != null) { if (contentPanel.getLayout() != null) {
int M_Warehouse_ID = getSelectedWarehouseId(); int M_Warehouse_ID = getSelectedWarehouseId();
int m_M_Product_ID = getSelectedRowKey(); Integer m_M_Product_ID = getSelectedRowKey();
initAtpTab(M_Warehouse_ID, m_M_Product_ID); if (m_M_Product_ID != null)
initAtpTab(M_Warehouse_ID, m_M_Product_ID);
} }
} }
}); });