mirror of
https://github.com/google/nomulus
synced 2026-01-03 11:45:39 +00:00
Fix NPE in StackdriverWriter
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=131603566
This commit is contained in:
@@ -232,7 +232,7 @@ public class StackdriverWriter implements MetricWriter {
|
||||
logger.info(String.format("Registered new metric descriptor %s", descriptor.getType()));
|
||||
} catch (GoogleJsonResponseException jsonException) {
|
||||
// Not the error we were expecting, just give up
|
||||
if (!jsonException.getStatusMessage().equals("ALREADY_EXISTS")) {
|
||||
if (!"ALREADY_EXISTS".equals(jsonException.getStatusMessage())) {
|
||||
throw jsonException;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user