Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-3123

Anchoring Patch to Git Repo Causes NPE

    XMLWordPrintable

Details

    Description

      1. Configure a Git repository in Fisheye.
      2. Create a patch file using git diff, for example:

      git diff 5eff093ae810706cff88f7f65b961da87934587f 78cbda2b0debee19fa46e1bf437f67939c8cd604 > patch.diff

      3. Create a new review in Crucible and attempt to upload the patch, ensuring that Crucible anchors the diff to the Git repository.

      You'll get a nasty NPE which is thrown every time you attempt to load the review (full NPE is attached):

      011-02-02 10:22:40,050 ERROR [btpool0-7 ] org.mortbay.log org.mortbay.log.Slf4jLog-warn - Nested in javax.servlet.ServletException: javax.el.ELException: java.lang.NullPointerException:
      javax.el.ELException: java.lang.NullPointerException
      	at javax.el.BeanELResolver.getValue(BeanELResolver.java:298)
      	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175)
      	at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
      	at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
      	at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1001)
      	at org.apache.jsp.tag.web.review.frxSlider_tag._jspx_meth_c_set_0(frxSlider_tag.java:218)
      	at org.apache.jsp.tag.web.review.frxSlider_tag._jspx_meth_c_forEach_0(frxSlider_tag.java:
      ...
      Caused by: java.lang.NullPointerException
      	at com.cenqua.obfuscate.idbleudr0._Cu.append(InfinityDB_1.0.53:1427)
      	at com.cenqua.fisheye.rep.impl.CommonRevInfoDAO.getRevId(CommonRevInfoDAO.java:147)
      	at com.cenqua.fisheye.rep.impl.CommonRevInfoDAO.getRevId(CommonRevInfoDAO.java:139)
      	at com.cenqua.fisheye.rep.impl.CommonRevInfoDAO.getRevId(CommonRevInfoDAO.java:131)
      	at com.cenqua.fisheye.cache.BaseRevisionCache.getRevId(BaseRevisionCache.java:659)
      	at com.atlassian.fisheye.dvcs.DvcsCache.getRevId(DvcsCache.java:75)
      	at com.atlassian.fisheye.dvcs.DvcsCache.getFileRevision(DvcsCache.java:116)
      	at com.atlassian.fisheye.dvcs.DvcsCache.getFileRevision(DvcsCache.java:41)
      

      Attachments

        Issue Links

          Activity

            People

              gcrain Geoff Crain (Inactive)
              Anonymous Anonymous
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: