NPE with null password
See original GitHub issuejava.lang.NullPointerException
at com.relayrides.pushy.apns.P12Util.getPrivateKeyEntryFromP12InputStream(P12Util.java:23)
at com.relayrides.pushy.apns.ApnsClient.getSslContextWithP12InputStream(ApnsClient.java:340)
at com.relayrides.pushy.apns.ApnsClient.getSslContextWithP12File(ApnsClient.java:331)
at com.relayrides.pushy.apns.ApnsClient.<init>(ApnsClient.java:234)
at com.relayrides.pushy.apns.ApnsClient.<init>(ApnsClient.java:209)
https://github.com/relayrides/pushy/blob/master/src/main/java/com/relayrides/pushy/apns/P12Util.java#L23 expects a password, but line 18 checks for null.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
NPE for null password #55 - brettwooldridge/HikariCP - GitHub
Oh. After minutes of experimenting, found out that password that would accept null value can also be set in password property.
Read more >PI71585: NullPointerException when null password is passed ...
It looks like the Liberty APIs do not allow a null password to be passed to the WSCallbackHandlerFactory.getInstance().getCallbackHandler() method.
Read more >[RANGER-1965] Prevent NPE on decrypting a null password - ASF ...
If no password is specified, the logs show a NPE: java.lang.NullPointerException ... Instead, we should only try to decrypt the password if it's...
Read more >[#RTFACT-12898] NPE encrypting a null password while saving ...
To reproduce: 1.Encrypt the configuration via Admin -> Security Configuration 2.Try to create a new remote repo -> it will fail. The log...
Read more >On Performing Update Password From Change Password ...
1. Login into OTM as ADMIN User · 2. Preference >> Change Password · 3. Enter Old and New Passwords and then click...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
…and thanks, of course, for the report!
So I’m going to put my money on “can’t actually create a P12 with a
null
password.” I updated the docs, tests, and internal checks to reflect that gamble in 56f7ccb.