Details
Description
Invalid key provider configuration returns `null` for provider and causes NPE like the following. This issue aims to prevent it.
Caused by: java.lang.NullPointerException at org.apache.orc.impl.reader.ReaderEncryptionVariant.getDecryptedKey(ReaderEncryptionVariant.java:150) at org.apache.orc.impl.reader.ReaderEncryptionVariant.getFileFooterKey(ReaderEncryptionVariant.java:179) at org.apache.orc.impl.reader.ReaderEncryptionKey.isAvailable(ReaderEncryptionKey.java:142) at org.apache.orc.impl.reader.ReaderEncryption.getVariant(ReaderEncryption.java:139) at org.apache.orc.impl.reader.StripePlanner.buildEncodings(StripePlanner.java:222) at org.apache.orc.impl.reader.StripePlanner.parseStripe(StripePlanner.java:126) at org.apache.orc.impl.RecordReaderImpl.readStripe(RecordReaderImpl.java:1100) at org.apache.orc.impl.RecordReaderImpl.advanceStripe(RecordReaderImpl.java:1151) at org.apache.orc.impl.RecordReaderImpl.advanceToNextRow(RecordReaderImpl.java:1186) at org.apache.orc.impl.RecordReaderImpl.<init>(RecordReaderImpl.java:248) at org.apache.orc.impl.ReaderImpl.rows(ReaderImpl.java:840)