diff --git a/lib_faceunity/src/main/java/io/agora/beautyapi/faceunity/agora/SWAuManager.java b/lib_faceunity/src/main/java/io/agora/beautyapi/faceunity/agora/SWAuManager.java index 7a6c7afe8..3ac3ec00f 100644 --- a/lib_faceunity/src/main/java/io/agora/beautyapi/faceunity/agora/SWAuManager.java +++ b/lib_faceunity/src/main/java/io/agora/beautyapi/faceunity/agora/SWAuManager.java @@ -354,7 +354,7 @@ public class SWAuManager extends BaseCacheManager { } public static String getChannelName(String liveUid) { - if (liveUid.contains("g")) { + if ( liveUid != null &&liveUid.contains("g")) { return liveUid; } else { return CommonAppConfig.SWChannelPrefix + liveUid;