6745 AndroidJNI.FindClass can return negative values

https://swrvedev.jira.com/browse/SWRVE-6745

When converting the pointer to the class it can result in a negative pointer. This was causing the SDK to not register for push notifications on Android.
True, that is done now on 3.3!

On Wed, Oct 22, 2014 at 2:45 PM, Tom Van Eyck <notifications@github.com>
wrote:

> In unity3d/Assets/Swrve/SwrveSDK/SwrveSDKImp.cs:
>
> > @@ -1481,7 +1481,7 @@ private void GooglePlayRegisterForPushNotification(MonoBehaviour container, stri
> >                  using (AndroidJavaClass unityPlayerClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) {
> >                      string jniPluginClassName = SwrveAndroidPushPluginPackageName.Replace(".", "/");
> >
> > -                    if (AndroidJNI.FindClass(jniPluginClassName).ToInt32() > 0) {
> > +                    if (AndroidJNI.FindClass(jniPluginClassName).ToInt32() != 0) {
> >                          androidPlugin = new AndroidJavaClass(SwrveAndroidPushPluginPackageName);
>
> would it be worth updating the readme
> <https://github.com/Swrve/swrve-sdk/blob/release-3_3/README.md> as the
> FindClass method has historically been a source of errors?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Swrve/swrve-unity-sdk/pull/10/files#r19213870>.
>