Problem location : TaskDAO.java Problem found : TestTaskDAO.java In the method findTask() we cannot find a task if its owner has no id. That means we would have dead entries in our file which we cannot reach Solution: User should ALWAYS have a userId -> delete the empty constructor