Unverified Commit c49b09b3 authored by Dave Cridland's avatar Dave Cridland Committed by GitHub

Merge pull request #932 from glennular/pingNullCheck

OF-1431 Add null safety on packet.getType()
parents 05aecf26 8bff148a
......@@ -56,7 +56,7 @@ public class IQPingHandler extends IQHandler implements ServerFeaturesProvider {
*/
@Override
public IQ handleIQ(IQ packet) {
if (packet.getType().equals(Type.get)) {
if (Type.get.equals(packet.getType())) {
return IQ.createResultIQ(packet);
}
return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment