IDEMPIERE-5731 NPE when using Query.list() with a view (#1846)
This commit is contained in:
parent
8edf4c730f
commit
df06938191
|
@ -2032,7 +2032,7 @@ public abstract class PO
|
||||||
} // UUID key search
|
} // UUID key search
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_KeyColumns.length == 0)
|
if (m_KeyColumns == null || m_KeyColumns.length == 0)
|
||||||
throw new IllegalStateException("No PK, UU nor FK - " + p_info.getTableName());
|
throw new IllegalStateException("No PK, UU nor FK - " + p_info.getTableName());
|
||||||
} // setKeyInfo
|
} // setKeyInfo
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue