I had used the same..
but it gives the Exception in first iteration itself..

On Sep 11, 4:41 pm, joyband <[email protected]> wrote:
> Use Log to debug the index number i
>
> On 9月11日, 下午7时35分, Asif k <[email protected]> wrote:
>
>
>
> > 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.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to