#vulnerable code 
                             @Test
	public void testGeomFromPointShape() throws UDFArgumentException {
		final double longitude = 12.224;
		final double latitude = 51.829;
		Point point = new Point(longitude, latitude);
		byte[] esriShape = GeometryEngine.geometryToEsriShape(point);
		assertNotNull("The point writable must not be null!", esriShape);
		
		BytesWritable shapeAsWritable = new BytesWritable(esriShape);
		assertNotNull("The shape writable must not be null!", shapeAsWritable);
		
		ST_GeomFromShape fromShape = new ST_GeomFromShape();
		BytesWritable geometryAsWritable = fromShape.evaluate(shapeAsWritable);
		
		ST_X getX = new ST_X();
		DoubleWritable xAsWritable = getX.evaluate(geometryAsWritable);
		assertNotNull("The x writable must not be null!", xAsWritable);
		
		ST_Y getY = new ST_Y();
		DoubleWritable yAsWritable = getY.evaluate(geometryAsWritable);
		assertNotNull("The y writable must not be null!", yAsWritable);
		
		assertEquals("Longitude is different!", longitude, xAsWritable.get(), Epsilon);
		assertEquals("Latitude is different!", latitude, yAsWritable.get(), Epsilon);
		
		ST_SRID getWkid = new ST_SRID();
		IntWritable wkidAsWritable = getWkid.evaluate(geometryAsWritable);
		assertNotNull("The wkid writable must not be null!", wkidAsWritable);
		
		assertEquals("The wkid is different!", 0, wkidAsWritable.get());
	} 
                            #location 23 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             @Test
	public void testGeomFromPointShape() throws UDFArgumentException {
		Point point = createFirstLocation();
		byte[] esriShape = GeometryEngine.geometryToEsriShape(point);
		assertNotNull("The point writable must not be null!", esriShape);

		BytesWritable shapeAsWritable = new BytesWritable(esriShape);
		assertNotNull("The shape writable must not be null!", shapeAsWritable);

		final int wkid = 4326;
		ST_GeomFromShape fromShape = new ST_GeomFromShape();
		BytesWritable geometryAsWritable = fromShape.evaluate(shapeAsWritable, wkid);
		assertNotNull("The geometry writable must not be null!", geometryAsWritable);

		validatePoint(point, wkid, geometryAsWritable);
	}