question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NPE with null password

See original GitHub issue
java.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:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jchamberscommented, Apr 26, 2016

…and thanks, of course, for the report!

1reaction
jchamberscommented, Apr 26, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found