Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-3769

When a rule doesn't have a description, a quality profile containing this rule can't be displayed when using Oracle DB

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3
    • Component/s: Rules
    • Labels:
      None

      Description

      This issue can be reproduced with the Flex 1.1 plugin whose Flex PMD rules don't have any description.

      This error doesn't happens with the H2 DB.

      2012.08.31 14:37:07 ERROR o.s.s.ui.JRubyFacade  Fail to render: http://localhost:9000/rules_configuration/index/10040
      undefined method `strip' for nil:NilClass
      	On line #10 of app/views/rules_configuration/_rule_note.html.erb
      
          7: submit_note_update_button_id = "snub_" + rule.id.to_s
          8: %>
          9: <div id="<%= note_detail_div_id -%>">
          10: <% if rule.description.strip.start_with?('<p>') %>
          11: <%= rule.description %>
          12: <% else %>
          13: <p><%= rule.description %></p>
      
          app/views/rules_configuration/_rule_note.html.erb:10
          org/jruby/RubyKernel.java:2056:in `send'
          app/views/rules_configuration/_rule.html.erb:37
          org/jruby/RubyKernel.java:2056:in `send'
          app/views/rules_configuration/index.html.erb:116
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fabemn OLD - Fabrice Bellingard
              Reporter:
              freddy.mallet Freddy Mallet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: