Program: 46018
Project: 46018
Buggy source:
/** 
 * {@inheritDoc}
 */
public WlAvatarCharacter getAvatarCharacter(Cell avatarCell,String userName,AvatarConfigInfo info){
  WorldManager wm=ClientContextJME.getWorldManager();
  CharacterParams attributes=new MaleAvatarParams(userName);
  String baseURL=null;
  try {
    ServerSessionManager manager=avatarCell.getCellCache().getSession().getSessionManager();
    String serverHostAndPort=manager.getServerNameAndPort();
    URL tmpURL=AssetUtils.getAssetURL("String_Node_Str",serverHostAndPort);
    baseURL=tmpURL.toExternalForm();
  }
 catch (  MalformedURLException ex) {
    logger.log(Level.WARNING,"String_Node_Str",ex);
    return null;
  }
  PScene simpleScene=new PScene(ClientContextJME.getWorldManager());
  simpleScene.addMeshInstance(new PPolygonMesh("String_Node_Str"),new PMatrix());
  attributes.setUseSimpleStaticModel(true,simpleScene);
  attributes.setBaseURL(baseURL);
  WlAvatarCharacter avatar=new WlAvatarCharacter.WlAvatarCharacterBuilder(attributes,wm).addEntity(false).build();
  Spatial placeHolder=null;
  try {
    URL url=new URL(baseURL + "String_Node_Str");
    ResourceLocator resourceLocator=new RelativeResourceLocator(url,avatarCell);
    ResourceLocatorTool.addThreadResourceLocator(ResourceLocatorTool.TYPE_TEXTURE,resourceLocator);
    placeHolder=(Spatial)BinaryImporter.getInstance().load(url);
    ResourceLocatorTool.removeThreadResourceLocator(ResourceLocatorTool.TYPE_TEXTURE,resourceLocator);
  }
 catch (  IOException excp) {
    logger.log(Level.WARNING,"String_Node_Str",excp);
    return avatar;
  }
  avatar.getJScene().getExternalKidsRoot().attachChild(placeHolder);
  avatar.getJScene().setExternalKidsChanged(true);
  return avatar;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
public WlAvatarCharacter getAvatarCharacter(Cell avatarCell,String userName,AvatarConfigInfo info){
  WorldManager wm=ClientContextJME.getWorldManager();
  CharacterParams attributes=new MaleAvatarParams(userName);
  String baseURL=null;
  try {
    ServerSessionManager manager=avatarCell.getCellCache().getSession().getSessionManager();
    String serverHostAndPort=manager.getServerNameAndPort();
    URL tmpURL=AssetUtils.getAssetURL("String_Node_Str",serverHostAndPort);
    baseURL=tmpURL.toExternalForm();
  }
 catch (  MalformedURLException ex) {
    logger.log(Level.WARNING,"String_Node_Str",ex);
    return null;
  }
  PScene simpleScene=new PScene(ClientContextJME.getWorldManager());
  simpleScene.addMeshInstance(new PPolygonMesh("String_Node_Str"),new PMatrix());
  attributes.setUseSimpleStaticModel(true,simpleScene);
  attributes.setBaseURL(baseURL);
  WlAvatarCharacter avatar=new WlAvatarCharacter.WlAvatarCharacterBuilder(attributes,wm).addEntity(false).build();
  Spatial spatial=null;
  try {
    URL url=new URL(baseURL + "String_Node_Str");
    ResourceLocator resourceLocator=new RelativeResourceLocator(url,avatarCell);
    ResourceLocatorTool.addThreadResourceLocator(ResourceLocatorTool.TYPE_TEXTURE,resourceLocator);
    spatial=(Spatial)BinaryImporter.getInstance().load(url);
    ResourceLocatorTool.removeThreadResourceLocator(ResourceLocatorTool.TYPE_TEXTURE,resourceLocator);
  }
 catch (  IOException excp) {
    logger.log(Level.WARNING,"String_Node_Str",excp);
    return avatar;
  }
  avatar.getJScene().getExternalKidsRoot().attachChild(spatial);
  avatar.getJScene().setExternalKidsChanged(true);
  return avatar;
}