Giter Site home page Giter Site logo

yshrsmz / monotweety Goto Github PK

View Code? Open in Web Editor NEW
114.0 7.0 25.0 3.33 MB

Simple Twitter Client just for tweeting, written in Kotlin with reactive MVVM-like approach

License: Apache License 2.0

Kotlin 100.00%
android android-application kotlin kotlin-android twitter twitter-client rxjava

monotweety's Issues

lateinit property router has not been initialized

this occurs when "Don't keep activity" is enabled.

  1. open unauthorized app
  2. navigate to twitter login view
  3. app crashes when trying to return to the app
11-02 18:54:50.716 17402-17402/net.yslibrary.monotweety.debug E/AndroidRuntime: FATAL EXCEPTION: main
                                                                                Process: net.yslibrary.monotweety.debug, PID: 17402
                                                                                java.lang.RuntimeException: Unable to start activity ComponentInfo{net.yslibrary.monotweety.debug/net.yslibrary.monotweety.activity.main.MainActivity}: kotlin.UninitializedPropertyAccessException: lateinit property router has not been initialized
                                                                                    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
                                                                                    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
                                                                                    at android.app.ActivityThread.-wrap12(ActivityThread.java)
                                                                                    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
                                                                                    at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                    at android.os.Looper.loop(Looper.java:154)
                                                                                    at android.app.ActivityThread.main(ActivityThread.java:6077)
                                                                                    at java.lang.reflect.Method.invoke(Native Method)
                                                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
                                                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
                                                                                 Caused by: kotlin.UninitializedPropertyAccessException: lateinit property router has not been initialized
                                                                                    at net.yslibrary.monotweety.base.BaseActivity.getRouter(BaseActivity.kt:23)
                                                                                    at net.yslibrary.monotweety.activity.main.MainActivity.access$getRouter$p(MainActivity.kt:23)
                                                                                    at net.yslibrary.monotweety.activity.main.MainActivity$component$2.invoke(MainActivity.kt:43)
                                                                                    at net.yslibrary.monotweety.activity.main.MainActivity$component$2.invoke(MainActivity.kt:23)
                                                                                    at kotlin.SynchronizedLazyImpl.getValue(Lazy.kt:131)
                                                                                    at net.yslibrary.monotweety.activity.main.MainActivity.getComponent(MainActivity.kt)
                                                                                    at net.yslibrary.monotweety.activity.main.MainActivity.getComponent(MainActivity.kt:23)
                                                                                    at net.yslibrary.monotweety.base.BaseController.getComponentProvider(BaseController.kt:31)
                                                                                    at net.yslibrary.monotweety.login.LoginController$component$2.invoke(LoginController.kt:36)
                                                                                    at net.yslibrary.monotweety.login.LoginController$component$2.invoke(LoginController.kt:26)
                                                                                    at kotlin.SynchronizedLazyImpl.getValue(Lazy.kt:131)
                                                                                    at net.yslibrary.monotweety.login.LoginController.getComponent(LoginController.kt)
                                                                                    at net.yslibrary.monotweety.login.LoginController.onCreate(LoginController.kt:42)
                                                                                    at net.yslibrary.monotweety.base.BaseController.onCreateView(BaseController.kt:37)
                                                                                    at com.bluelinelabs.conductor.Controller.inflate(Controller.java:823)
                                                                                    at com.bluelinelabs.conductor.ControllerChangeHandler.executeChange(ControllerChangeHandler.java:151)
                                                                                    at com.bluelinelabs.conductor.Router.performControllerChange(Router.java:632)
                                                                                    at com.bluelinelabs.conductor.Router.rebindIfNeeded(Router.java:421)
                                                                                    at com.bluelinelabs.conductor.Conductor.attachRouter(Conductor.java:33)
                                                                                    at net.yslibrary.monotweety.base.BaseActivity.onCreate(BaseActivity.kt:33)
                                                                                    at net.yslibrary.monotweety.activity.main.MainActivity.onCreate(MainActivity.kt:54)
                                                                                    at android.app.Activity.performCreate(Activity.java:6664)
                                                                                    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
                                                                                    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
                                                                                    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707) 
                                                                                    at android.app.ActivityThread.-wrap12(ActivityThread.java) 
                                                                                    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460) 
                                                                                    at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                                    at android.os.Looper.loop(Looper.java:154) 
                                                                                    at android.app.ActivityThread.main(ActivityThread.java:6077) 
                                                                                    at java.lang.reflect.Method.invoke(Native Method) 
                                                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) 
                                                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) 

NPE on EditorTileService#onStartListening

http://crashes.to/s/ec33a3b6eaf

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.service.quicksettings.Tile.setState(int)' on a null object reference
       at net.yslibrary.monotweety.quicksetting.EditorTileService.onStartListening(EditorTileService.kt:49)
       at android.service.quicksettings.TileService$H.handleMessage(TileService.java:398)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:154)
       at android.app.ActivityThread.main(ActivityThread.java:6176)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)

Tile should be available in onStartListening though :(

CI

  • wercker
  • codecov
  • codebeat

design

  • icon
  • notification icon
  • Google PlayStore banner
  • Google PlayStore screenshots
  • logo

handle error on update status

when error occurred while tweeting from notification, notification freezes and does not accept following operation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.