if (aOther.decimal== null)
BigDecimal thisd = decimal; BigDecimal otherd = aOther.decimal; if (otherd == null)
  public boolean Equals( BigNumber aOther)  {    if (integer != null)    {      if (aOther.integer == null)      {        //hier        BigDecimal x = GetDecimal(this);        if (x.compareTo(aOther.decimal) == 0)          return true;        return false;      }      return (integer.compareTo(aOther.integer) == 0);    }    if (decimal != null)    {      if (aOther.decimal== null)      {        BigDecimal x = GetDecimal(aOther);        if (x.compareTo(decimal) == 0)          return true;        return false;      }      return (decimal.compareTo(aOther.decimal) == 0);    }    return true;  }