Comments (14)
From Android Studio in case this helps??
03-29 17:30:36.080 3706-3706/com.dexdrip.stephenblack.nightwatch E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.dexdrip.stephenblack.nightwatch, PID: 3706
java.lang.RuntimeException: Unable to resume activity {com.dexdrip.stephenblack.nightwatch/com.dexdrip.stephenblack.nightwatch.Home}: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.compareTo(java.lang.String)' on a null object reference
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2951)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2982)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2365)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
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: Attempt to invoke virtual method 'int java.lang.String.compareTo(java.lang.String)' on a null object reference
at com.dexdrip.stephenblack.nightwatch.Bg.slopeArrow(Bg.java:153)
at com.dexdrip.stephenblack.nightwatch.Home.displayCurrentInfo(Home.java:201)
at com.dexdrip.stephenblack.nightwatch.Home.onResume(Home.java:98)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1241)
at android.app.Activity.performResume(Activity.java:6023)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2940)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2982)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2365)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
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)
03-29 17:30:36.770 3706-3872/com.dexdrip.stephenblack.nightwatch I/Fabric: Crashlytics report upload complete: 56FA9F8900F0-0003-0987-CED7A12453BB.cls
03-29 17:31:13.380 3706-3713/com.dexdrip.stephenblack.nightwatch W/art: Suspending all threads took: 10ms
from nightwatch.
Hi, as you are using Studio and self-compile:
Could you do the following changes here: https://github.com/StephenBlackWasAlreadyTaken/NightWatch/blob/master/mobile/src/main/java/com/dexdrip/stephenblack/nightwatch/Bg.java#L156
Between String arrow = "--";
and if (direction.compareTo("DoubleDown") == 0)... {
please add the line:
if(direction == null) return arrow;
... and please report back if that helps.
from nightwatch.
Did you updated git hub source?
On Tue, Mar 29, 2016, 2:35 PM AdrianLxM [email protected] wrote:
Hi, as you are using Studio and self-compile:
Could you do the following changes here:
https://github.com/StephenBlackWasAlreadyTaken/NightWatch/blob/master/mobile/src/main/java/com/dexdrip/stephenblack/nightwatch/Bg.java#L156Between String arrow = "--"; and if (direction.compareTo("DoubleDown") ==
0)... { please add the line:if(direction == null) return arrow;
... and please report back if that helps.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#78 (comment)
from nightwatch.
@bw396704, @sjolundjohn didn't even respond yet. 12 minutes is a bit short for him to test that ;)
from nightwatch.
Hi - I was able to test the change and it worked successfully on my phone / device, no crash.
I was not able to get the watchfaces installed on my phone, but this may be due to a problem with how I built the APX in Android Studio.
I attempted to commit the file to Git, though am a beginner at Android Studio etc. so not sure that it went in correctly.
If somebody can rebuild into a new version hopefully we solved it.
from nightwatch.
Hi, watchfaces also confirmed to be working after signing APX before build.
Didn't figure out how to commit / patch / pull, but change should be easy to make. If anybody wants to provide instructions happy to help.
from nightwatch.
@sjolundjohn, I can do that when I come to it.
One more question: what do you use as uploader?
from nightwatch.
@AdrianLxM it would be great if you could provide some tips on how to commit changes / pull requests via Android Uploader - I couldn't figure it out.
Uploader - I have a 640g pump so using a solution built by @LittleDMatt
from nightwatch.
@sjolundjohn, I have never worked with git from an android phone. The easiest way would be to use a Desktop/Laptop.
On Github you can simply change the file. If you have no merge rights in the repository, it will suggest generating a branch in your forked repository (or even do a fork) plus a pull request instead.
from nightwatch.
@AdrianLxM it is in Android Studio that I made the changes. Thanks!
from nightwatch.
Ah, now I understand why this data was missing on which it crashed trying to access.
from nightwatch.
@sjolundjohn: simply go into the directory you cloned your fork to. Call git add
on these files and then push them back to your repository on github. Then you can simply press the button to compare and generate a pull request on the github website.
from nightwatch.
Hello, as further confirmation: I had the same issue, and the fix mentioned above worked for me as well. Thank you!
from nightwatch.
I'm having the same issue with version 2.0.4_2. Is any workaround? I don't have the compiler to modify the source code :(
from nightwatch.
Related Issues (20)
- Dexcom share
- Dexcom g6
- No data from dexcom app to nightwatch HOT 7
- Dexcom not sending reading to Nightwatch HOT 2
- Dexcom G6 is not sending any info to the Night watch app HOT 3
- High battery usage
- Not updating to watch HOT 1
- Nigthwatch loaded not showing, solution
- Upgraded to new phone but nightwatch wont work! HOT 15
- Managing Two Dexcom Profiles
- Stopped working today HOT 30
- Mine stopped working at around 4:30 EST
- Nightwatch stopped working
- Stopped working
- Nightwatch not getting data from dexcom HOT 1
- NightWatch Android down? 12/8 730pm est HOT 50
- App stopped working
- Dexcom G6
- Stopped working after phone update.
- Feature Requests: Glucose Number as Notification Bar Icon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nightwatch.