NPE in XMPPConnection

Description

In smack 3.1.0 :
XMPPConnection, line 1222 - 1223. 'pcb' is referencing a null pointer, which is then assigned on the next line. These two lines should be swapped.

Before:

ks.load(new FileInputStream(configuration.getKeystorePath()), pcb.getPassword());
pcb = new PasswordCallback("Keystore Password: ",false);

After:

pcb = new PasswordCallback("Keystore Password: ",false);
ks.load(new FileInputStream(configuration.getKeystorePath()), pcb.getPassword());

Environment

None

Activity

Show:
Robin Collier
August 18, 2011, 3:11 AM

The relevant code has already been changed and the bug in question no longer exists.

Cannot Reproduce

Assignee

Robin Collier

Reporter

wroot

Labels

None

Expected Effort

None

Ignite Forum URL

Fix versions

Affects versions

Priority

Major
Configure