jtexp / NutriScope

Nutrition Tracker using USDA NDB API
0 stars 2 forks source link

Realm Server and Login Update #4

Closed odong95 closed 7 years ago

odong95 commented 7 years ago

Person object and Overview activity are placeholders and need to be deleted later. Facebook, Google login needs work, it's validating credentials atm, but not logging them into next screen. Need to also add encryption to passwords.

jtexp commented 7 years ago

Crashes when I close and then open it without logging out

FATAL EXCEPTION: main Process: edu.utdallas.csdesign.spring17.nutriscope, PID: 10359 java.lang.RuntimeException: Unable to start activity ComponentInfo{edu.utdallas.csdesign.spring17.nutriscope/edu.utdallas.csdesign.spring17.nutriscope.login.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6119) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference at edu.utdallas.csdesign.spring17.nutriscope.login.LoginFragment.showProgress(LoginFragment.java:144) at edu.utdallas.csdesign.spring17.nutriscope.login.LoginFragment.onSuccess(LoginFragment.java:127) at edu.utdallas.csdesign.spring17.nutriscope.login.LoginFragment.onViewCreated(LoginFragment.java:75) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1314) at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1528) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1595) at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:757) at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2355) at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2146) at android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps(FragmentManager.java:2098) at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2008) at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:388) at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:607) at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:178) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1248) at android.app.Activity.performStart(Activity.java:6696) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2628) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)  at android.app.ActivityThread.-wrap12(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6119)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)  03-08 23:19:09.515 1512-2004/system_process W/ActivityManager: Force finishing activity edu.utdallas.csdesign.spring17.nutriscope/.login.LoginActivity