Domi04151309 / HomeApp

HomeApp is a small and easy to use smart home app with a simple framework.

Home Page:https://f-droid.org/packages/io.github.domi04151309.home/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug Report] Adding device broken

cweiske opened this issue · comments

Description
Adding a new device with latest git version f95d6a3 is broken.

  1. Settings
  2. New device
  3. Add device with address
  4. Name: Test
  5. Address: homeapp-simpleapi.boo/
  6. Click create
  7. No device is added, device list is empty
Logs
11-28 22:25:33.952  7892  7892 D AndroidRuntime: Shutting down VM
11-28 22:25:33.969  7892  7892 E AndroidRuntime: FATAL EXCEPTION: main
11-28 22:25:33.969  7892  7892 E AndroidRuntime: Process: io.github.domi04151309.home, PID: 7892
11-28 22:25:33.969  7892  7892 E AndroidRuntime: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:501)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	... 1 more
11-28 22:25:33.969  7892  7892 E AndroidRuntime: Caused by: org.json.JSONException: No value for order
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at org.json.JSONObject.get(JSONObject.java:399)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at org.json.JSONObject.getJSONArray(JSONObject.java:594)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at s2.d.j(:42)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at s2.d.b(:87)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at io.github.domi04151309.home.activities.EditDeviceActivity.a0(:169)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at io.github.domi04151309.home.activities.EditDeviceActivity.V(Unknown Source:0)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at n2.f.onClick(Unknown Source:19)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at android.view.View.performClick(View.java:7259)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at android.view.View.performClickInternal(View.java:7236)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at android.view.View.access$3600(View.java:801)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at android.view.View$PerformClick.run(View.java:27892)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:883)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:100)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:214)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7356)
11-28 22:25:33.969  7892  7892 E AndroidRuntime: 	... 3 more

Additional information

  • Android version: 10
  • Home App version: f95d6a3
  • Installation source: Own Build