SyntaxFix
Write A Post
Hire A Developer
Questions
getArguments() is returning null because "Its doesn't get anything"
Try this code to handle this situation
if(getArguments()!=null) { int myInt = getArguments().getInt(key, defaultValue); }