Lines 744-749
Link Here
|
744 |
// we have a value from a resource attribute |
744 |
// we have a value from a resource attribute |
745 |
if (iconPath != null) { |
745 |
if (iconPath != null) { |
746 |
String ext = new Path(iconPath).getFileExtension(); |
746 |
String ext = new Path(iconPath).getFileExtension(); |
|
|
747 |
// if the resource targets a folder, the file extension will be null |
748 |
if (ext == null) |
749 |
return null; |
747 |
boolean valid = false; |
750 |
boolean valid = false; |
748 |
// ensure the resource is an image |
751 |
// ensure the resource is an image |
749 |
for (int i = 0; i < VALID_IMAGE_TYPES.length; i++) { |
752 |
for (int i = 0; i < VALID_IMAGE_TYPES.length; i++) { |