<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -34,7 +34,8 @@ window.addEventListener('load', function(e){
   }, false);
 
   function share(){
-    var item = new get_current_item();
+    var item = get_current_item();
+    if(!item) return;
     // for Tombloo
     var ctx = update({
       document  : doc,
@@ -84,13 +85,28 @@ function addClass(e, cl){
     : (e.className = cl);
 }
 function get_current_item(){
+  var item = {
+    parent: null,
+    body: null,
+    target: null,
+    feed: {
+      channel: {
+        link: null
+      }
+    }
+  }, link;
   try {
-    this.parent = $x('id(&quot;current-entry&quot;)/descendant::div[contains(concat(&quot; &quot;, normalize-space(@class), &quot; &quot;), &quot; entry-container &quot;)]');
-    this.body = $x('id(&quot;current-entry&quot;)/descendant::div[contains(concat(&quot; &quot;, normalize-space(@class), &quot; &quot;), &quot; item-body &quot;)]');
-    this.target = $x('id(&quot;current-entry&quot;)/descendant::a[contains(concat(&quot; &quot;, normalize-space(@class), &quot; &quot;), &quot; entry-title-link &quot;)]');
-    this.feed = { channel:{ } };
-    this.feed.channel.link = decodeURIComponent($x('id(&quot;current-entry&quot;)/descendant::a[contains(concat(&quot; &quot;, normalize-space(@class), &quot; &quot;), &quot; entry-source-title &quot;)]').href.replace(/^.*\/(?=http)/, ''));
+    item.parent = $x('id(&quot;current-entry&quot;)/descendant::div[contains(concat(&quot; &quot;, normalize-space(@class), &quot; &quot;), &quot; entry-container &quot;)]') || null;
+    item.body = $x('id(&quot;current-entry&quot;)/descendant::div[contains(concat(&quot; &quot;, normalize-space(@class), &quot; &quot;), &quot; item-body &quot;)]') || null;
+    item.target = $x('id(&quot;current-entry&quot;)/descendant::a[contains(concat(&quot; &quot;, normalize-space(@class), &quot; &quot;), &quot; entry-title-link &quot;)]') || null;
+    link = $x('id(&quot;current-entry&quot;)/descendant::a[contains(concat(&quot; &quot;, normalize-space(@class), &quot; &quot;), &quot; entry-source-title &quot;)]') || null;
+    if(link &amp;&amp;  link.href) item.feed.channel.link = decodeURIComponent(link.href.replace(/^.*\/(?=http)/, ''));
+    if(!item.parent || !item.body || !item.target || !item.feed.channel.link){
+      throw 'get_current_item error';
+    } else {
+      return item;
+    }
   } catch (e) {
-    alert(e);
+    return null;
   }
 }</diff>
      <filename>greasemonkey/googlereadertombloo.user.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6cdce2525da1f1ec89a0e424f9f34b5ab775f525</id>
    </parent>
  </parents>
  <author>
    <name>Constellation</name>
    <email>utatane.tea@gmail.com</email>
  </author>
  <url>http://github.com/to/tombloo/commit/c352b289a0a6855c63b2a647936a3ce302ad98ad</url>
  <id>c352b289a0a6855c63b2a647936a3ce302ad98ad</id>
  <committed-date>2009-01-19T04:44:24-08:00</committed-date>
  <authored-date>2009-01-19T04:44:24-08:00</authored-date>
  <message>* fix error on getting item from GoogleReader (GoogleReader + Tombloo)

Fix get_current_item function not to raise error.</message>
  <tree>a99590073a489f1c1d282087b87f462fe546bad1</tree>
  <committer>
    <name>Constellation</name>
    <email>utatane.tea@gmail.com</email>
  </committer>
</commit>
