GP-4386 Handle null FileID for ProjectArchive

This commit is contained in:
ghidra1 2024-03-06 16:58:21 -05:00
parent 75beb82103
commit aad9e41670
3 changed files with 20 additions and 35 deletions

View file

@ -218,8 +218,8 @@ public class GhidraFileData {
}
/**
* Returns a unique file-ID
* @return the ID
* Returns a unique file-ID if one has been established or null
* @return the file-ID or null if failed to obtain ID
*/
String getFileID() {
return fileID;

View file

@ -65,8 +65,13 @@ public interface DomainFile extends Comparable<DomainFile> {
public boolean exists();
/**
* Returns a unique file-ID
* @return the ID
* Returns a unique file-ID if one has been established or null. Examples which may result in
* null ID:
* <ul>
* <li>Very old project file which pre-dates introduction of file ID, or</li>
* <li>Remote versioned file with lost connection</li>
* </ul>
* @return the file-ID or null if failed to obtain ID.
*/
public String getFileID();