From e1bcc2e64d5fdc48906d0f4550d2539fb5ac7bdd Mon Sep 17 00:00:00 2001 From: mcilwain Date: Tue, 5 Jun 2018 07:14:13 -0700 Subject: [PATCH] Add relevant exception message for checkArgumentNotNull usage I ran into this while writing some other code and having the exception message would have made it easier to debug. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=199292321 --- java/google/registry/model/domain/GracePeriod.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/google/registry/model/domain/GracePeriod.java b/java/google/registry/model/domain/GracePeriod.java index b56eaaa53..0e85435e8 100644 --- a/java/google/registry/model/domain/GracePeriod.java +++ b/java/google/registry/model/domain/GracePeriod.java @@ -137,7 +137,7 @@ public class GracePeriod extends ImmutableObject { DateTime expirationTime, String clientId, Key billingEventRecurring) { - checkArgumentNotNull(billingEventRecurring); + checkArgumentNotNull(billingEventRecurring, "billingEventRecurring cannot be null"); return createInternal(type, expirationTime, clientId, null, billingEventRecurring); }