New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Startup crash #17

Closed
emanueleDiVizio opened this Issue Mar 25, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@emanueleDiVizio

emanueleDiVizio commented Mar 25, 2015

Hi i just implemented your library but it crashes on startup with this error. I followed the realm to initialize.

03-25 16:41:19.913  27702-27702/com.lord.emanuele.orarioscolastico E/AndroidRuntimeFATAL EXCEPTION: main
    Process: com.lord.emanuele.orarioscolastico, PID: 27702
    java.lang.RuntimeException: Unable to create application com.lord.emanuele.orarioscolastico.DiaryApp: java.lang.NullPointerException: println needs a message
            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4521)
            at android.app.ActivityThread.access$1500(ActivityThread.java:144)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:135)
            at android.app.ActivityThread.main(ActivityThread.java:5221)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
     Caused by: java.lang.NullPointerException: println needs a message
            at android.util.Log.println_native(Native Method)
            at android.util.Log.e(Log.java:232)
            at co.uk.rushorm.android.AndroidLogger.logError(AndroidLogger.java:37)
            at co.uk.rushorm.android.AndroidRushClassFinder.getRushClass(AndroidRushClassFinder.java:60)
            at co.uk.rushorm.android.AndroidRushClassFinder.getRushClasses(AndroidRushClassFinder.java:45)
            at co.uk.rushorm.android.AndroidRushClassFinder.findClasses(AndroidRushClassFinder.java:36)
            at co.uk.rushorm.core.RushCore.loadAnnotationCache(RushCore.java:334)
            at co.uk.rushorm.core.RushCore.initialize(RushCore.java:85)
            at co.uk.rushorm.core.RushCore.initialize(RushCore.java:63)
            at co.uk.rushorm.android.RushAndroid.initialize(RushAndroid.java:38)
            at co.uk.rushorm.android.RushAndroid.initialize(RushAndroid.java:23)
            at com.lord.emanuele.orarioscolastico.DiaryApp.onCreate(DiaryApp.java:16)
            at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1011)
            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4518)
            at android.app.ActivityThread.access$1500(ActivityThread.java:144)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:135)
            at android.app.ActivityThread.main(ActivityThread.java:5221)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
@Stuart-campbell

This comment has been minimized.

Show comment
Hide comment
@Stuart-campbell

Stuart-campbell Mar 26, 2015

Owner

Hi,

Does your project have a lot of other dependencies?

I think you have the same issue #4 So likely can be solved as suggested on that issue. I thought I had resolved it but looks like the throwable i'm catching has a null error message, which is breaking the logger.

I will put a null check in the logger.

Cheers

Owner

Stuart-campbell commented Mar 26, 2015

Hi,

Does your project have a lot of other dependencies?

I think you have the same issue #4 So likely can be solved as suggested on that issue. I thought I had resolved it but looks like the throwable i'm catching has a null error message, which is breaking the logger.

I will put a null check in the logger.

Cheers

@Stuart-campbell Stuart-campbell added the bug label Mar 26, 2015

@emanueleDiVizio

This comment has been minimized.

Show comment
Hide comment
@emanueleDiVizio

emanueleDiVizio Mar 29, 2015

Yup, there's quite a lot.
Okay, I will try soon.

Thanks

emanueleDiVizio commented Mar 29, 2015

Yup, there's quite a lot.
Okay, I will try soon.

Thanks

Stuart-campbell added a commit that referenced this issue Apr 3, 2015

Startup crash #17 Added null check to logger. MinSdkVersion 16 #1 add…
…ed single insert for android version before 16
@Stuart-campbell

This comment has been minimized.

Show comment
Hide comment
@Stuart-campbell

Stuart-campbell Apr 3, 2015

Owner

I have added a null check to the logger in v1.1.2 so this should be resolved thanks.

Owner

Stuart-campbell commented Apr 3, 2015

I have added a null check to the logger in v1.1.2 so this should be resolved thanks.

@emanueleDiVizio

This comment has been minimized.

Show comment
Hide comment
@emanueleDiVizio

emanueleDiVizio Apr 4, 2015

Great, thank you.

emanueleDiVizio commented Apr 4, 2015

Great, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment