Commit 52ff5033 authored by Adrien Oliva's avatar Adrien Oliva

fix(crash) Avoid crash when no user are registered

Signed-off-by: Adrien Oliva's avatarAdrien Oliva <olivaa+gitlab@yapbreak.fr>
parent d5915216
Pipeline #593 passed with stage
in 0 seconds
......@@ -279,6 +279,8 @@ public class DataHelper extends SQLiteOpenHelper {
public Status queryQuestStatus(Character active, Quest q)
{
if (active == null)
return Status.NOT_STARTED;
SQLiteDatabase db = getReadableDatabase();
Status returnStatus;
......
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