if (getInstanceValue(frame, inv, cpg).isInstance() &&
if (frame.isValid() && getInstanceValue(frame, inv, cpg).isInstance() &&
		public boolean isResourceOpen(BasicBlock basicBlock, InstructionHandle handle, ConstantPoolGen cpg, Stream resource,			ResourceValueFrame frame) {			Instruction ins = handle.getInstruction();			if (ins instanceof INVOKESPECIAL) {				// Does this instruction close the stream?				INVOKESPECIAL inv = (INVOKESPECIAL) ins;				if (getInstanceValue(frame, inv, cpg).isInstance() &&					matchMethod(inv, cpg, resource.getResourceClass(), "<init>"))					return true;			}			return false;		}