mlazana / addme-android Goto Github PK
View Code? Open in Web Editor NEWaddMe is an android app that helps users quickly echange their social media accounts
addMe is an android app that helps users quickly echange their social media accounts
This is the code:
addMe-Android/app/src/main/java/com/addme/addmeapp/Contacts.java
Lines 131 to 142 in 9b412a7
2019-06-28 05:29:05.789 13933-13933/com.addme.addmeapp I/System.out: This is what I am looking for[Ion Petropoulos, Donna]
2019-06-28 05:29:05.790 13933-13933/com.addme.addmeapp D/AndroidRuntime: Shutting down VM
2019-06-28 05:29:05.791 13933-13933/com.addme.addmeapp E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.addme.addmeapp, PID: 13933
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
at com.addme.addmeapp.Contacts.createListAdapter(Contacts.java:136)
at com.addme.addmeapp.Contacts.access$000(Contacts.java:33)
at com.addme.addmeapp.Contacts$1$1.onDataChange(Contacts.java:69)
at com.google.firebase.database.core.ValueEventRegistration.fireEvent(com.google.firebase:firebase-database@@16.0.6:75)
at com.google.firebase.database.core.view.DataEvent.fire(com.google.firebase:firebase-database@@16.0.6:63)
at com.google.firebase.database.core.view.EventRaiser$1.run(com.google.firebase:firebase-database@@16.0.6:55)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
As you can see, the finalfullnames inside the method has taken the values, but when I call the setAdapter method, i get a NullPointerException
If the answer is that firebase is async, then really I don't know how else I can approach this problem
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.