Fixed nullpointerexception in graphclassselection

Fixes #7