AguaClara / post.dose-DEPRECATED

Providing a coagulant dosage recomendation to ODK
0 stars 0 forks source link

Testing POST.Dose #11

Open eak24 opened 7 years ago

eak24 commented 7 years ago

Hi @asm278 I just downloaded and built the latest post.dose on the master branch (which looks like the most up to date) with commit 9ae96ae091c2c43baacc8ba08c129ac2a7261e1c and when I open it from the POST.collect app with the test form you defined in this repo, I get the following error from the android monitor:

12-02 13:46:35.523 32258-32258/org.post.aguaclara.postdose E/AndroidRuntime: FATAL EXCEPTION: main Process: org.post.aguaclara.postdose, PID: 32258 java.lang.RuntimeException: Unable to start activity ComponentInfo{org.post.aguaclara.postdose/org.post.aguaclara.postdose.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3254) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350) at android.app.ActivityThread.access$1100(ActivityThread.java:222) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7229) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference at org.post.aguaclara.postdose.MainActivity.onCreate(MainActivity.java:93) at android.app.Activity.performCreate(Activity.java:6876) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)  at android.app.ActivityThread.access$1100(ActivityThread.java:222)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:158)  at android.app.ActivityThread.main(ActivityThread.java:7229)  at java.lang.reflect.Method.invoke(Native Method)

Note that the form did not ask me for the raw water turbidity before it had the "launch suggested coagulant dose" button.

Replication steps are:

Sorry I can't dig into this more, but once you get it running, bump me here and I will try again!

asm278 commented 7 years ago

Whoops, I forgot that there was a form in this repo.

I branched odkforms with a form that should work with the app.

eak24 commented 7 years ago

@asm278 this looks great so far. Just a few comments/questions:

That's it for now. See you tomorrow AM!