DevK2S/Study_Partner

Method invocation 'getUid' may produce 'NullPointerException' in MediaAcitvity.java file.

Closed this issue · 3 comments

Hello @krayong , I am a participant of GSSOC . May I work on this issue?

Hello, @prashant7139 can you please elaborate when getUid() may produce NullPointerException

This is the screenshot .

image

This screen is only reachable when the user is logged in. As soon as the user logs in a value is set in the current user of Firebase. This ensures getUid() cannot produce NullPointerException in the MediaActivity.java file.