<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -246,11 +246,13 @@ module Roby::Transactions
         # Transaction proxies do not have history
 	def history; &quot;&quot; end
 	def plan=(new_plan) # :nodoc:
-	    if new_plan &amp;&amp; new_plan.plan != __getobj__.plan
-		raise &quot;invalid plan #{new_plan}&quot;
-	    elsif !new_plan.kind_of?(Roby::Transaction)
-		raise &quot;trying to insert a transaction proxy in something else than a transaction (#{new_plan})&quot;
-	    end
+	    if new_plan 
+                if new_plan.plan != __getobj__.plan
+                    raise &quot;invalid plan #{new_plan}&quot;
+                elsif !new_plan.kind_of?(Roby::Transaction)
+                    raise &quot;trying to insert a transaction proxy in something else than a transaction (#{new_plan})&quot;
+                end
+            end
 	    @plan = new_plan
 	end
 </diff>
      <filename>lib/roby/transactions/proxy.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>33e5a73500b7f01b1f9434fa4f0645340bbc64f3</id>
    </parent>
  </parents>
  <author>
    <name>Sylvain Joyeux</name>
    <email>sylvain.joyeux@m4x.org</email>
  </author>
  <url>http://github.com/doudou/roby/commit/eecdf048a104ee030c312af9d753d4d079943c97</url>
  <id>eecdf048a104ee030c312af9d753d4d079943c97</id>
  <committed-date>2008-06-01T05:35:20-07:00</committed-date>
  <authored-date>2008-06-01T05:17:42-07:00</authored-date>
  <message>[core] fix Transaction::Proxy#plan= when the new plan is 'nil'

  3e2aee2f64f4061f1d14b3fcc7389dcf23a64826 added a check in
  Transactions::Proxy, to be sure that the new plan is a transaction.
  However, it did not take into account the 'nil' case (which is fine).</message>
  <tree>af4d2547c0264ee09e8ec3d4c84af26a146aa442</tree>
  <committer>
    <name>Sylvain Joyeux</name>
    <email>sylvain.joyeux@m4x.org</email>
  </committer>
</commit>
