fixed issue #8

note.equals now correctly returns false when the object is null. Before it returned true.