mirror of
https://github.com/apache/jclouds.git
synced 2025-02-27 13:05:05 +00:00
Handle null fingerprints properly.
This commit is contained in:
parent
f7ac63bdeb
commit
d4abfec8aa
@ -241,6 +241,8 @@ public class GoogleComputeEngineParserModule extends AbstractModule {
|
||||
String fingerprint = null;
|
||||
if (metadata.getAsJsonPrimitive("fingerprint") != null) {
|
||||
fingerprint = metadata.getAsJsonPrimitive("fingerprint").getAsString();
|
||||
} else {
|
||||
fingerprint = "";
|
||||
}
|
||||
return new Metadata(fingerprint, builder.build());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user