mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
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:
parent
362b7a929b
commit
b527d2ebfa
|
@ -59,7 +59,7 @@ public class MediaSnippet implements Comparable<MediaSnippet>, Comparator<MediaS
|
||||||
this.width = -1;
|
this.width = -1;
|
||||||
this.height = -1;
|
this.height = -1;
|
||||||
int p = 0;
|
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.width = Integer.parseInt(attr.substring(0, p).trim());
|
||||||
this.height = Integer.parseInt(attr.substring(p + 3).trim());
|
this.height = Integer.parseInt(attr.substring(p + 3).trim());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user