#vulnerable code 
                             public Double getFGCT() throws Exception {
		return Double.parseDouble(getAttribute(fgcCollector, COLLECTION_TIME_ATTRIBUTE).toString()) / 1000;
	} 
                            #location 2 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             public Double getFGCT() throws Exception {
		if (fgcCollector == null) {
			return 0.0;
		}
		return Double.parseDouble(getAttribute(fgcCollector, COLLECTION_TIME_ATTRIBUTE).toString()) / 1000;
	}