This fix avoids an NPE which occurs when the reference project dialog is closed with "ok" and avoids that the reference project is really added.
This fix avoids an NPE which occurs when the reference project dialog is closed with "ok" and avoids that the reference project is really added.