On Java, the last call of Convert.ToDouble crashes with java.lang.NullPointerException
namespace TestDouble;
interface
uses
RemObjects.Elements.RTL;
type
ConsoleApp = class
public
class method Main(args: array of String);
end;
implementation
class method ConsoleApp.Main(args: array of String);
begin
var d := Convert.ToDouble('1.0', Locale.Invariant); // ok
d := Convert.ToDouble('-1.0', Locale.Invariant); // ok
d := Double.parseDouble('+1.0'); // ok
d := Convert.ToDouble('+1.0', Locale.Invariant); // java.lang.NullPointerException
end;
end.