I ran into a null pointer exception while testing a plugin for P2. I found that the exception occurs when I try to add a remote repository to a virtual P2, but only when the remote's p2OriginalUrl property is not set. This property seems rather hidden, as it can only be accessed via the raw configuration descriptor file. It gets set automatically with the remote's url property when creating or updating the remote from the ui, but it does not get set from the REST api. This seems like a minor oversight, and will probably cause confusion for people using P2 via REST.