Commit 8bff148a authored by glennular's avatar glennular

Add null safety on packet.getType()

parent 0390a6b8
......@@ -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