Hi all,

  I am getting null pointer exception at the bellow mentioned line in
the for loop.

char[] buffer= {'s','d','c'};
char[] test;

for(int i=0; buffer[i]!='\n';i++) {
test[i] = buffer[i];   //////////    This line gives Null pointer
Exception at runtime
}

I am getting the same error in each for loop where I am equating
something.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to