I think the problem comes from this line:
mCurrentUser.getParseObject("file");
You are trying to get a ParseObject
from the "file" column on the Users
table, and then trying to get a ParseFile
from ParseObject
that probably doesn't exists.
What you want is to retrieve a ParseFile
from the Users
table that resides in a column called "file". Since ParseUser
inherits from ParseObject
you can do this:
ParseUser.getCurrentUser().getParseFile("file")