IDEMPIERE-5731 NPE when using Query.list() with a view (#1846)

This commit is contained in:
Carlos Ruiz 2023-05-20 03:55:07 +02:00 committed by GitHub
parent 8edf4c730f
commit df06938191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2032,7 +2032,7 @@ public abstract class PO
} // 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());
} // setKeyInfo