From 7d5a08f083c6e2856c1f15e1a465312efb95058d Mon Sep 17 00:00:00 2001 From: The Judge Date: Thu, 7 Nov 2024 20:13:18 -0800 Subject: [PATCH] Return nullable --- src/main/java/pojlib/API.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/pojlib/API.java b/src/main/java/pojlib/API.java index 65271770..e4897192 100644 --- a/src/main/java/pojlib/API.java +++ b/src/main/java/pojlib/API.java @@ -199,7 +199,7 @@ public static boolean removeAccount(Activity activity, String uuid) { * * @param activity Android activity object */ - public static void login(Activity activity, String accountUUID) + public static void login(Activity activity, @Nullable String accountUUID) { ConnectivityManager connManager = (ConnectivityManager) activity.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkCapabilities capabilities = connManager.getNetworkCapabilities(connManager.getActiveNetwork());