diff --git a/core/src/main/java/com/rudderstack/android/sdk/core/RudderClient.java b/core/src/main/java/com/rudderstack/android/sdk/core/RudderClient.java index 056ee063..3b46db9d 100644 --- a/core/src/main/java/com/rudderstack/android/sdk/core/RudderClient.java +++ b/core/src/main/java/com/rudderstack/android/sdk/core/RudderClient.java @@ -471,7 +471,7 @@ public void alias(String newId) { } public void alias(@NonNull String newId, @Nullable RudderOption option) { - alias(newId, option, null); + alias(newId, null, option); } /** @@ -482,7 +482,7 @@ public void alias(@NonNull String newId, @Nullable RudderOption option) { * @param newId New userId for the user * @param option RudderOptions for this event */ - public void alias(@NonNull String newId, @Nullable RudderOption option, @Nullable String previousId) { + public void alias(@NonNull String newId, @Nullable String previousId, @Nullable RudderOption option) { RudderContext context = getRudderContext(); Map traits = null; if (context != null) {