Recording onSaveInstanceState NullPointerException

Does this fix the problem?

If so, I guess that data.getData() is returning null even though resultCode is RESULT_OK in onActivityResult(). Not sure why that would be.

<pre>
        protected void onActivityResult(final int requestCode,
                        final int resultCode, final Intent data) {
                super.onActivityResult(requestCode, resultCode, data);

                switch (requestCode) {
                case ACTIVITY_TAKE_PHOTO:
                        if (resultCode == Activity.RESULT_OK) {
                                this.mData.photoUris.add(data.getData());
                                ((TextView) this.findViewById(R.id.camera_label))
                                                .setText(Integer.toString(this.mData.photoUris.size()));
                        }
                        break;
                case ACTIVITY_TAKE_VIDEO:
                        if (resultCode == Activity.RESULT_OK) {
                                this.mData.videoUris.add(data.getData());
                                ((TextView) this.findViewById(R.id.video_label))
                                                .setText(Integer.toString(this.mData.videoUris.size()));
                                this.mData.submit_selected[3] = true;
                        }
                        break;
               ....
</pre>