NullReferenceException When Getting Latest Topics and Replies For Forums in User's Clubs
I'm trying to query the set of forums (fora?) for the user's clubs to get the latest topics and replies in those forums. This is the code I'm using:

    RoomCollectionCriterion userClubRoomsCollection = new RoomCollectionCriterion();

    foreach (Club userClub in userClubCollection)
    {
        RoomCriterion userClubRoomCriterion = new RoomCriterion();
        userClubRoomCriterion.ID = new IntegerCriterion();
        userClubRoomCriterion.ID.Value = userClub.ForumRoom.ID;

        userClubRoomsCollection.Criteria.Add(userClub.Name, userClubRoomCriterion);
    }

    TopicQuery topicQuery = new TopicQuery();

    topicQuery.Room = new RoomCriterion();
    // Pass in our collection of the user's clubs to the query
    topicQuery.Room.Rooms = userClubRoomsCollection;

    MessageCollection topics = QueryHandler.GetQueryResult<EPiServer.Community.Forum.Topic, MessageCollection>(topicQuery, pageNumber, 2);
    MessageCollection replies = QueryHandler.GetQueryResult<EPiServer.Community.Forum.Topic, MessageCollection>(topicQuery, pageNumber, 4);

The problem I have is that every time I hit the first call to `GetQueryResult`, I get a `NullReferenceException`. I can't see anything wrong/missing with what I'm passing in to `GetQueryResult`, but I'm hoping somebody else has done this previously and can suggest a fix for this.
NullReferenceException When Getting Latest Topics and Replies For Forums in User's Clubs
===

I'm trying to query the set of forums (fora?) for the user's clubs to get the latest topics and replies in those forums. This is the code I'm using:

    RoomCollectionCriterion userClubRoomsCollection = new RoomCollectionCriterion();

    foreach (Club userClub in userClubCollection)
    {
        RoomCriterion userClubRoomCriterion = new RoomCriterion();
        userClubRoomCriterion.ID = new IntegerCriterion();
        userClubRoomCriterion.ID.Value = userClub.ForumRoom.ID;

        userClubRoomsCollection.Criteria.Add(userClub.Name, userClubRoomCriterion);
    }

    TopicQuery topicQuery = new TopicQuery();

    topicQuery.Room = new RoomCriterion();
    // Pass in our collection of the user's clubs to the query
    topicQuery.Room.Rooms = userClubRoomsCollection;

    MessageCollection topics = QueryHandler.GetQueryResult<EPiServer.Community.Forum.Topic, MessageCollection>(topicQuery, pageNumber, 2);
    MessageCollection replies = QueryHandler.GetQueryResult<EPiServer.Community.Forum.Topic, MessageCollection>(topicQuery, pageNumber, 4);

The problem I have is that every time I hit the first call to `GetQueryResult`, I get a `NullReferenceException`. I can't see anything wrong/missing with what I'm passing in to `GetQueryResult`, but I'm hoping somebody else has done this previously and can suggest a fix for this.