fix for media search

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6522 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
orbiter 2009-12-09 23:47:37 +00:00
parent 362b7a929b
commit b527d2ebfa

View File

@ -59,7 +59,7 @@ public class MediaSnippet implements Comparable<MediaSnippet>, Comparator<MediaS
this.width = -1;
this.height = -1;
int p = 0;
if ((p = attr.indexOf(" x ")) > 0) {
if (attr != null && (p = attr.indexOf(" x ")) > 0) {
this.width = Integer.parseInt(attr.substring(0, p).trim());
this.height = Integer.parseInt(attr.substring(p + 3).trim());
}