Android dynamic radiobuttons id
===

I am creating a number (count) of radiobuttons. I cant use radiogroup, becouse i need 1 radiobutton, next to a button, in each tablerow. Yet, as with all radiobuttons, only one should be picked. I figured i could set the id, and read it on the oncheckedchanged, to change everything, but the one you clicked, to false.
  
 

     rb = new RadioButton[count];

   
    For-loop....
         rb[i]  = new RadioButton(this);
         rb[i].setId(5000 + i);
         rb[i].setOnCheckedChangeListener(this);


And the OnCheckedChanged

    @Override
    	public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) 
	{
		// TODO Auto-generated method stub
		
		for (int i = 0; i < count; i++)
		{
			if (buttonView.getId() == 5000 + i)
			{
				// Its the one
				
			}
			else
			{
				// Its not the one
				RadioButton rb = (RadioButton) findViewById((5000 + count));
				rb.setChecked(false);
			}
		}
		
	}


I DO catch the right radiobuttons, but when i try the .setchecked(false) it gives me a nullpointerexception, and i have no idea why.