Actions
Bug #10005
openorg.jruby.exceptions.RaiseException: (NoMethodError) undefined method `newOrigin' for nil:NilClass
Start date:
12/23/2019
Due date:
% Done:
0%
Estimated time:
Detected in build:
svn
Platform:
Published in build:
Description
java.lang.AssertionError: ******************************************************************************** ATTENTION! An unexpected error has occurred: org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `newOrigin' for nil:NilClass The program will be terminated. Please contact us at: microtesk-support@ispras.ru We are sorry for the inconvenience. Exception stack: org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `newOrigin' for nil:NilClass at RUBY.org(/srv/jenkins/workspace/MicroTESK_MIPS64/build/target/lib/ruby/directive.rb:47) at RUBY.org(/srv/jenkins/workspace/MicroTESK_MIPS64/build/target/lib/ruby/template.rb:856) at RUBY.pre(/srv/jenkins/workspace/MicroTESK_MIPS64/build/target/arch/mips64/templates/mips64_base.rb:120) at org.jruby.RubyBasicObject.instance_eval(org/jruby/RubyBasicObject.java:1594) at RUBY.section(/srv/jenkins/workspace/MicroTESK_MIPS64/build/target/lib/ruby/template.rb:877) at RUBY.pre(/srv/jenkins/workspace/MicroTESK_MIPS64/build/target/arch/mips64/templates/mips64_base.rb:50) at RUBY.pre(/srv/jenkins/workspace/MicroTESK_MIPS64/build/target/arch/mips64/templates/bubble_sort_byte.rb:39) at RUBY.generate(/srv/jenkins/workspace/MicroTESK_MIPS64/build/target/lib/ruby/template.rb:1007) at RUBY.main(/srv/jenkins/workspace/MicroTESK_MIPS64/build/target/lib/ruby/microtesk.rb:33) at org.jruby.RubyHash.each(org/jruby/RubyHash.java:1342) at RUBY.main(/srv/jenkins/workspace/MicroTESK_MIPS64/build/target/lib/ruby/microtesk.rb:29) at RUBY.(root)(/srv/jenkins/workspace/MicroTESK_MIPS64/build/target/lib/ruby/microtesk.rb:52)
def org(origin, is_absolute=false) factory = @template.template.getDirectiveFactory if origin.is_a?(Integer) if is_absolute factory.newOriginAbsolute origin # Absolute else factory.newOrigin origin # Section-Based end elsif origin.is_a?(Hash) delta = get_attribute origin, :delta if !delta.is_a?(Integer) raise "delta (#{delta}) must be an Integer" end factory.newOriginRelative delta # Relative else raise "origin (#{origin}) must be an Integer or a Hash" end end
Actions