<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -69,7 +69,9 @@
 						recommendations=context; createPlayList();
 					} else {
 						// The list consists of recommendations, we'll need to load them 
-						doJSON(recommendationSource, function(o:Object):void{recommendations=o; createPlayList();});
+						try {
+							doJSON(recommendationSource, function(o:Object):void{recommendations=o; createPlayList();});
+				        } catch(e:JSONParseError) {enablePlayList = false; props.put('showShare', false);}
 					}
 				}
 			}</diff>
      <filename>src/VideoPlayer.mxml</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,7 @@
 
 import com.adobe.net.DynamicURLLoader;
 import com.adobe.serialization.json.JSON;
+import com.adobe.serialization.json.JSONParseError;
 private function doJSON(url:String, f:Function):DynamicURLLoader {
    	var loader:DynamicURLLoader = new DynamicURLLoader();
 	loader.addEventListener(Event.COMPLETE, function(e:Event):void {f(JSON.decode(loader.data));});</diff>
      <filename>src/doJSON.as</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>775ef3d799de1c31f2926f5dcd24e6738c7b4bd9</id>
    </parent>
  </parents>
  <author>
    <name>Steffen Tiedemann Christensen</name>
    <email>steffen@refresh.dk</email>
  </author>
  <url>http://github.com/23/videoplayer/commit/50f4e531736d0d4e783fc80b00402e2ad680a671</url>
  <id>50f4e531736d0d4e783fc80b00402e2ad680a671</id>
  <committed-date>2009-05-20T00:35:27-07:00</committed-date>
  <authored-date>2009-05-20T00:35:27-07:00</authored-date>
  <message>Handle error when no recommendations are available</message>
  <tree>85177f9f7ead7045ed1e19214c1ba2c124e8d553</tree>
  <committer>
    <name>Steffen Tiedemann Christensen</name>
    <email>steffen@refresh.dk</email>
  </committer>
</commit>
