protected Address getAdjustedAddress(Address mapAddress, int numEntries) {
		if (mapAddress == null) {
			return null; // null address indicates the map is not used.
		}
		if (numEntries == 0) {
			if (isRelative) {
				if (mapAddress.equals(imageBaseAddress)) {
					return null; // null address indicates the map is not used.
				}
			}
			else {
				if (mapAddress.getOffset() == 0) { // zero address
					return null; // null address indicates the map is not used.
				}
			}
		}
		return mapAddress;
	}
Converts the indicated address to null whenever there are no entries as indicated
by numEntries and the filler address is as expected.
<br>
Map addresses are extracted from a component in a structure in memory. 
This method returns null when the associated number of expected map entries in the 
table is 0 and the value for no entries is used for the address. Otherwise, either 
the image base offset or a zero address could get used when the address isn't actually 
relevant.

@param mapAddress address where the map data types are expected.
@param numEntries the number of expected map entries.
@return the mapAddress or null when appropriate to indicate no valid address.
Ghidra/Features/MicrosoftCodeAnalyzer/src/main/java/ghidra/app/cmd/data/AbstractCreateDataTypeModel.java