Added "f!=null" condition for "getIcon" method. The reason is that f could be null due a bug in jdk 1.7 and this method throws an NPE exception. Adding the additional condition helps the application the bypass that defect.
Merge branch 'beam5' of github.com:seadas/beam into beam5