I get the following exception.
Exception in thread "main" java.lang.NullPointerException
at org.jivesoftware.smackx.pubsub.Node.getSubscriptions(Node.java:229)
at org.jivesoftware.smackx.pubsub.Node.getSubscriptionsAsOwner(Node.java:212)
at org.jivesoftware.smackx.pubsub.Node.getSubscriptionsAsOwner(Node.java:184)
at Client41.main(Client41.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
In the debug window I can see all the subscriptions in the raw received packets.