Fixed crash

This commit is contained in:
M66B 2019-08-21 20:34:26 +02:00
parent 701c2d6121
commit 7912139c1d
1 changed files with 5 additions and 4 deletions

View File

@ -63,10 +63,11 @@ public class FragmentAnswer extends FragmentBase {
// Get arguments
Bundle args = getArguments();
if (args.getBoolean("copy"))
copy = args.getLong("id", -1);
else
id = args.getLong("id", -1);
if (args != null)
if (args.getBoolean("copy"))
copy = args.getLong("id", -1);
else
id = args.getLong("id", -1);
}
@Override