Permalink
Browse files

* Issues #281 #282 #290 and #291 Remove legacy callback callbacks

* Cover case where a subclass of EntryPointActivity is NOT backed by a RUby script:  IRB
  • Loading branch information...
1 parent 6ba6111 commit 8614f3f0cb0ae3c2503833e293c579e66fb7b22c @donv donv committed Nov 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/ruboto/util/xml_element.rb
@@ -207,10 +207,10 @@ def method_definition(class_name)
"JRubyAdapter.isInitialized()",
['String rubyClassName = scriptInfo.getRubyClassName();'] +
if_else(
- "(Boolean)JRubyAdapter.runScriptlet(rubyClassName + \".instance_methods(false).any?{|m| m.to_sym == :#{snake_case_attribute}}\")",
+ "rubyClassName != null && (Boolean)JRubyAdapter.runScriptlet(rubyClassName + \".instance_methods(false).any?{|m| m.to_sym == :#{snake_case_attribute}}\")",
ruby_call,
if_else(
- "(Boolean)JRubyAdapter.runScriptlet(rubyClassName + \".instance_methods(false).any?{|m| m.to_sym == :#{attribute('name')}}\")",
+ "rubyClassName != null && (Boolean)JRubyAdapter.runScriptlet(rubyClassName + \".instance_methods(false).any?{|m| m.to_sym == :#{attribute('name')}}\")",
ruby_call(true),
[super_return]
)

0 comments on commit 8614f3f

Please sign in to comment.