I am adding content transitions to a pretty large app and in most cases I do not have any shared elements but still want to use the transition animations. I have tracked the problem down to this line of code:
ActivityOptionsCompat.makeSceneTransitionAnimation(activity, ????);
I have tried setting Pair array to null or an empty array and I have tried just leaving it out. Everything results in the following error:
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.ViewRootImpl.setPausedForTransition(boolean)' on a null object reference
However, I only get this error on Android 6.0+, it works fine on any version of Android 5. Am I trying to do this the wrong way?