fix for nullpointer exception in AnalysisThread.java