mirror of https://github.com/apache/jclouds.git
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…
Reference in New Issue