diff --git a/sdk/android/api/org/webrtc/CallSessionFileRotatingLogSink.java b/sdk/android/api/org/webrtc/CallSessionFileRotatingLogSink.java index c6b9e97e7d..f4edb58847 100644 --- a/sdk/android/api/org/webrtc/CallSessionFileRotatingLogSink.java +++ b/sdk/android/api/org/webrtc/CallSessionFileRotatingLogSink.java @@ -14,11 +14,17 @@ public class CallSessionFileRotatingLogSink { private long nativeSink; public static byte[] getLogData(String dirPath) { + if (dirPath == null) { + throw new IllegalArgumentException("dirPath may not be null."); + } return nativeGetLogData(dirPath); } public CallSessionFileRotatingLogSink( String dirPath, int maxFileSize, Logging.Severity severity) { + if (dirPath == null) { + throw new IllegalArgumentException("dirPath may not be null."); + } nativeSink = nativeAddSink(dirPath, maxFileSize, severity.ordinal()); }