DBZ-5988 Impose null check on schema and name values prior to applying lowercase operation

This commit is contained in:
Animesh Kumar 2023-01-10 14:35:27 +05:30 committed by Jiri Pechanec
parent 44bcedaa72
commit 90cd3fdb6d

View File

@ -1114,8 +1114,8 @@ private static class SystemTablesPredicate implements TableFilter {
@Override
public boolean isIncluded(TableId t) {
return !SYSTEM_SCHEMAS.contains(t.schema().toLowerCase()) &&
!SYSTEM_TABLES.contains(t.table().toLowerCase()) &&
return t.schema() != null && !SYSTEM_SCHEMAS.contains(t.schema().toLowerCase()) &&
t.table() != null && !SYSTEM_TABLES.contains(t.table().toLowerCase()) &&
!t.schema().startsWith(TEMP_TABLE_SCHEMA_PREFIX);
}
}