Avoid NPE in the linking action