Changed NULL checks for Chord.cpp