Solved NullPointerException if no notes