Bugsense: https://www.bugsense.com/dashboard/project/98c9e403/errors/838538040
java.lang.RuntimeException: Unable to start activity ComponentInfo{net.lp.collectionista/net.lp.collectionista.ui.activities.phones.collections.MainCollectionExportWindow}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2068)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2093)
at android.app.ActivityThread.access$600(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1204)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4801)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:528)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)Caused by: java.lang.NullPointerException
at android.content.UriMatcher.match(UriMatcher.java:204)
at net.lp.collectionista.providers.FacadeContentProvider.int getProductClassCode(android.net.Uri,android.content.ContentResolver)(Collectionista:125)
at net.lp.collectionista.providers.FacadeContentProvider.net.lp.collectionista.domain.ProductFactory getProductFactory(android.net.Uri,android.content.ContentResolver)(Collectionista:160)
at net.lp.collectionista.ui.fragments.collections.MainCollectionExportDialog.java.lang.String[] getProductProjection$66553909(android.net.Uri)(Collectionista:31)
at net.lp.collectionista.ui.fragments.collections.CollectionExportDialog.onCreateLoader(Collectionista:279)
at android.support.v4.app.LoaderManagerImpl.android.support.v4.app.LoaderManagerImpl$LoaderInfo createLoader(int,android.os.Bundle,android.support.v4.app.LoaderManager$LoaderCallbacks)(Collectionista:490)
at android.support.v4.app.LoaderManagerImpl.android.support.v4.app.LoaderManagerImpl$LoaderInfo createAndInstallLoader(int,android.os.Bundle,android.support.v4.app.LoaderManager$LoaderCallbacks)(Collectionista:499)
at android.support.v4.app.LoaderManagerImpl.android.support.v4.content.Loader initLoader(int,android.os.Bundle,android.support.v4.app.LoaderManager$LoaderCallbacks)(Collectionista:553)
at net.lp.collectionista.ui.fragments.collections.CollectionExportDialog.void onActivityCreated(android.os.Bundle)(Collectionista:261)
at android.support.v4.app.Fragment.void performActivityCreated(android.os.Bundle)(Collectionista:1508)
at android.support.v4.app.FragmentManagerImpl.void moveToState(android.support.v4.app.Fragment,int,int,int,boolean)(Collectionista:947)
at android.support.v4.app.FragmentManagerImpl.void moveToState(int,int,int,boolean)(Collectionista:1104)
at android.support.v4.app.BackStackRecord.void run()(Collectionista:682)
at android.support.v4.app.FragmentManagerImpl.boolean execPendingActions()(Collectionista:1467)
at android.support.v4.app.FragmentActivity.void onStart()(Collectionista:570)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1166)
at android.app.Activity.performStart(Activity.java:5211)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2041)
... 11 more
Added an error when we suspect uri is null, to find bugs easier in the future. Not fixed yet.