0
enterPictureInPictureMode(new PictureInPictureParams.Builder().build());

上面的代码偶尔会抛出以下异常:

Exception: Attempt to invoke virtual method 'int org.chromium.arc.workspace.Workspace.getOrientation()' on a null object reference
Class: java.lang.NullPointerException
 Stack trace: java.lang.NullPointerException: Attempt to invoke virtual method 'int org.chromium.arc.workspace.Workspace.getOrientation()' on a null object reference
    at android.os.Parcel.createException(Parcel.java:1956)
    at android.os.Parcel.readException(Parcel.java:1918)
    at android.os.Parcel.readException(Parcel.java:1868)
    at android.app.IActivityManager$Stub$Proxy.enterPictureInPictureMode(IActivityManager.java:8944)
    at android.app.Activity.enterPictureInPictureMode(Activity.java:2202)

任何人都可以提供有关此异常的可能原因的提示吗?

4

0 回答 0