The changes in this commit https://github.com/processing/processing-android/commit/85fe852c25d1079504b4d0a997afb56e6bce7dc4#diff-d93412275e0c6963c3311f8b1bce14765eb5fadc36da6a7561c9aa78fe23b5ea to update the mode to AndroidX made the PSurfaceNone.getContext() to return null if the app kind was wallpaper or watch face.