Fixed a NPE in using the QS tool.