That's why you are supposed to provide the platform ID to that method, and not null.
As the spec says very clearly: **If platform is NULL, the behaviour is implementation-defined.**
It is _not_ defined by the standard what happens, but up to the implementation (such as choosing one platform as the "default" platform).
Obviously, you would NEVER rely on implementation-defined behaviour which might just happen to work on your computer.