Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Chat window Issues in android

Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually i am working on livechat application i have four part for my application.after login screen there is open a window in which i am showing the list of visitor visiting the data of the list is updating each after 3 seconds.this part is working fine.the list the list row i am showing the data like ipaddress,statustext,noofvisit,buttontext,durationtime extra.

When any new chat request come(list refresh if status text is chatrequest) and if i click on accept the chat accepted and call go to server status change and a new window will open chat window.this part is also working fine.the issue is for chat window for sending message a call go to server and for response message a call also go.

My issue is that the in chatting part 5 or 6 message are going and receiving after that i am getting null pointer exception.In chat window i am using code like following

Saloon Keeper
Posts: 5882
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

630 lines of code is too much to ask of anyone to go through and try to make sense of. You're accessing element 0 of an ArrayList that doesn't contain any elements in line 189 of the Chat class - armed with that knowledge it should be trivial for you to find which ArrayList object that is, and take steps to prevent it from happening.
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!