Commit a5acee4d authored by Leonardo Aramaki's avatar Leonardo Aramaki

Add nullity check

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