public boolean isValid(Program testProgram) {
		return addr == null || testProgram.getAddressFactory().isValidAddress(addr);
	}
Returns true if this location represents a valid location in the given program.

@param testProgram the program to test if this location is valid.
@return true if this location represents a valid location in the given program.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/ProgramLocation.java