#vulnerable code 
                             public String getCollectionName(Object object) {
		MappedClass mc = getMappedClass(object);
		return mc.getCollectionName();
	} 
                            #location 3 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             public String getCollectionName(Object object) {
		if (object == null) throw new IllegalArgumentException();
		
		MappedClass mc = getMappedClass(object);
		return mc.getCollectionName();
	}