r7153 - dumbhippo/trunk/server/src/com/dumbhippo/services
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7153 - dumbhippo/trunk/server/src/com/dumbhippo/services
- Date: Tue, 8 Jan 2008 16:57:07 -0600 (CST)
Author: marinaz
Date: 2008-01-08 16:57:05 -0600 (Tue, 08 Jan 2008)
New Revision: 7153
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/services/FacebookPhotoData.java
Log:
Throw an exception if we didn't find a photo id in the Facebook photo link.
Modified: dumbhippo/trunk/server/src/com/dumbhippo/services/FacebookPhotoData.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/services/FacebookPhotoData.java 2008-01-08 22:47:07 UTC (rev 7152)
+++ dumbhippo/trunk/server/src/com/dumbhippo/services/FacebookPhotoData.java 2008-01-08 22:57:05 UTC (rev 7153)
@@ -94,7 +94,7 @@
int startOfPid = link.indexOf("pid=");
if (startOfPid < 0)
- return "";
+ throw new RuntimeException("Did not find pid in the following Facebook photo link: " + link);
int endOfPid = link.indexOf("&", startOfPid);
// pid is not the last parameter normally, but just in case
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]