Commit a5acee4d authored by Leonardo Aramaki's avatar Leonardo Aramaki

Add nullity check

parent 45ec720a
...@@ -558,9 +558,11 @@ public class RoomFragment extends AbstractChatRoomFragment implements ...@@ -558,9 +558,11 @@ public class RoomFragment extends AbstractChatRoomFragment implements
@Override @Override
public void setupWith(RocketChatAbsoluteUrl rocketChatAbsoluteUrl) { public void setupWith(RocketChatAbsoluteUrl rocketChatAbsoluteUrl) {
token = rocketChatAbsoluteUrl.getToken(); if (rocketChatAbsoluteUrl != null) {
userId = rocketChatAbsoluteUrl.getUserId(); token = rocketChatAbsoluteUrl.getToken();
messageListAdapter.setAbsoluteUrl(rocketChatAbsoluteUrl); userId = rocketChatAbsoluteUrl.getUserId();
messageListAdapter.setAbsoluteUrl(rocketChatAbsoluteUrl);
}
} }
@Override @Override
......
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