title: how to get joined group list & their member info using XMPP?
body: <p>To get Joined Room List i have tried:,</p>
  
  <p><code>getJoinedRooms(connection, "xmpptestuser1@server.com");// line:213</code></p>
  
  <pre><code>Iterator&lt;String&gt; rooms = MultiUserChat.getJoinedRooms(conn, userJID);// line:689
  
      //System.out.println("ROOM:"+rooms);
        while (rooms.hasNext()) {
  
            System.out.println("Room list: "+new DiscoverItems.Item(rooms.next()).toString());;
  
        }
  </code></pre>
  
  <p>but, it gives NPE. So how can i fetch joined group List?
  There is 1 joined group where 3 members are participants on my server Side.
  <strong>Logcat</strong>:</p>
  
  <pre><code> I/System.out(948): Room: join 
   W/System.err(948): java.lang.NullPointerException
   W/System.err(948): at org.jivesoftware.smackx.muc.MultiUserChat.getJoinedRooms(MultiUserChat.java:180)
   W/System.err(948): at org.apache.android.xmpp.XMPPClient.getJoinedRooms(XMPPClient.java:689)
   W/System.err(948): at org.apache.android.xmpp.XMPPClient$4.onClick(XMPPClient.java:213)
   W/System.err(948): at android.view.View.performClick(View.java:4084)
   W/System.err(948): at android.view.View$PerformClick.run(View.java:16966)
   W/System.err(948): at android.os.Handler.handleCallback(Handler.java:615)
   W/System.err(948): at android.os.Handler.dispatchMessage(Handler.java:92)
   W/System.err(948): at android.os.Looper.loop(Looper.java:137)
   W/System.err(948): at android.app.ActivityThread.main(ActivityThread.java:4745)
   W/System.err(948): at java.lang.reflect.Method.invokeNative(Native Method)
   W/System.err(948): at java.lang.reflect.Method.invoke(Method.java:511)
   W/System.err(948): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
   W/System.err(948): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
   W/System.err(948): at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>To get RoomInfo i have tried:</p>
  
  <pre><code>RoomInfo info = null;
      try {
          info = MultiUserChat.getRoomInfo(conn,chatRoomName);
      } catch (XMPPException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      System.out.println("Number of occupants:" + info.getOccupantsCount()); 
  </code></pre>
  
  <p>How to fetch All members detail like their Nick Name, JID, owner in joined group?I have tried almost all the solution from SO.Any help would be appreciated!</p>