On a fresh Jenkins (1.509.1 LTS, Windowss 7 x64, also on Ubuntu) ticking Tools Location but saving/applying without filling the form brings up error popup / throws exception.
Steps to reproduce:
1. Install new Jenkins
2. Go to Configuring, tick Tools Location
3. Click save/apply
The error seems to come only when no tools are installed