Skip to content

Commit

Permalink
Fix a bug where the app would crash if the name was not present.
Browse files Browse the repository at this point in the history
  • Loading branch information
hispeedimagins committed Aug 2, 2018
1 parent 50d48e5 commit 0f1fecc
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -144,6 +144,10 @@ class OpenOtherGuyBlog : AppCompatActivity() ,GlobalInterface {
})
startAlphaAnimation(toolbar_linear, 0, View.INVISIBLE)*/
val runs = GeneralRequestsFeedIntoConstants(applicationContext)
runs.RunThemAll()


var too : ShowHideCollapsingToolbar = ShowHideCollapsingToolbar(appbar,main_linearlayout_title,toolbar_linear)
too.startAlphaAnimation(toolbar_linear,0,View.INVISIBLE)
if(intent != null && intent.extras != null){
Expand Down Expand Up @@ -560,8 +564,8 @@ class OpenOtherGuyBlog : AppCompatActivity() ,GlobalInterface {
val mulni = subni * 9
val addtf = mulni + 25*/
val resultp = gson.fromJson<prof.profiledata>(resulto.jsonMetadata, prof.profiledata::class.java)
if(resultp != null){
if(resultp.profile.name != null){
if(resultp?.profile != null){
if(resultp.profile.name != null && resultp.profile.name.isNotEmpty()){
activity_username.text = resultp.profile.name

activity_username_toolbar.text = resultp.profile.name
Expand Down

0 comments on commit 0f1fecc

Please sign in to comment.