My ABC class is calling a function setMessage(String msg) which is defined in base class. It is giving null pointer exception.
The setMassage(String msg function is as below:
protected void setMessage( String msg )
{
int X, Y ;
m.setText( msg );
X=getX();
Y=getY();
World world = getWorld();
if ( m.getWorld() != null )
{
world.removeObject( m ) ;
return;
}
world.addObject(m, X,Y ) ;
}
I can see the value of world object is coming as null.
Please help me out in this. Am i missing something. Please let me know if more information required.
Thanks In Advance.

