Uploaded image for project: 'Teeda'
  1. Teeda
  2. TEEDA-383

go~() で移動する際に,Page クラスが無く HTML のみのページに移動すると NullPointerException が発生する.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.10
    • Fix Version/s: 1.0.12-rc1
    • Component/s: Teeda Extension
    • Labels:
      None

      Description

      go~() で移動する際に,Page クラスが無く HTML のみのページに移動すると NullPointerException が発生する.

      java.lang.NullPointerException
      	org.seasar.teeda.extension.html.factory.ConditionFactory.isMatch(ConditionFactory.java:60)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleTagProcessor(TagProcessorAssemblerImpl.java:90)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleTagProcessor(TagProcessorAssemblerImpl.java:64)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleElementNodeChildren(TagProcessorAssemblerImpl.java:122)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleTagProcessor(TagProcessorAssemblerImpl.java:95)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleTagProcessor(TagProcessorAssemblerImpl.java:64)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleElementNodeChildren(TagProcessorAssemblerImpl.java:122)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleTagProcessor(TagProcessorAssemblerImpl.java:95)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleTagProcessor(TagProcessorAssemblerImpl.java:64)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleElementNodeChildren(TagProcessorAssemblerImpl.java:122)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleElementNodeAsText(TagProcessorAssemblerImpl.java:112)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleTagProcessor(TagProcessorAssemblerImpl.java:102)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleTagProcessor(TagProcessorAssemblerImpl.java:64)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleTagProcessor(TagProcessorAssemblerImpl.java:82)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assembleTagProcessor(TagProcessorAssemblerImpl.java:61)
      	org.seasar.teeda.extension.html.impl.TagProcessorAssemblerImpl.assemble(TagProcessorAssemblerImpl.java:51)
      	org.seasar.teeda.extension.html.impl.TagProcessorCacheImpl.updateTagProcessor(TagProcessorCacheImpl.java:95)
      	org.seasar.teeda.extension.html.impl.HtmlViewHandler.restoreView(HtmlViewHandler.java:104)
      	org.seasar.teeda.core.lifecycle.impl.RestoreViewPhase.composeViewRoot(RestoreViewPhase.java:113)
      	org.seasar.teeda.core.lifecycle.impl.RestoreViewPhase.executePhase(RestoreViewPhase.java:81)
      	org.seasar.teeda.core.lifecycle.AbstractPhase.execute(AbstractPhase.java:57)
      	org.seasar.teeda.core.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:68)
      	javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
      	org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:63)
      	org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:64)
      	org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
      	org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:69)
      

      続けてもう一度画面遷移すると違う場所で NullPointerException が発生する.

      java.lang.NullPointerException
      	org.seasar.teeda.extension.html.impl.HtmlViewHandler.renderView(HtmlViewHandler.java:161)
      	org.seasar.teeda.extension.html.impl.HtmlViewHandler.renderView(HtmlViewHandler.java:141)
      	org.seasar.teeda.core.lifecycle.impl.RenderResponsePhase.executePhase(RenderResponsePhase.java:38)
      	org.seasar.teeda.core.lifecycle.AbstractPhase.execute(AbstractPhase.java:57)
      	org.seasar.teeda.core.lifecycle.LifecycleImpl.render(LifecycleImpl.java:131)
      	javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
      	org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:63)
      	org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:64)
      	org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
      	org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:69)
      

        Activity

        Hide
        shot shot added a comment -

        1.0.12で対応します.
        手元では既に解決済みです.

        Show
        shot shot added a comment - 1.0.12で対応します. 手元では既に解決済みです.
        Hide
        shot shot added a comment -

        修正しました.
        ConditionFactory.isMatch()でPageDescがnullの場合のチェックが
        漏れていたので追加しました.

        Show
        shot shot added a comment - 修正しました. ConditionFactory.isMatch()でPageDescがnullの場合のチェックが 漏れていたので追加しました.
        Hide
        shot shot added a comment -

        383の対応コード。後で対応する。

        Show
        shot shot added a comment - 383の対応コード。後で対応する。

          People

          • Assignee:
            shot shot
            Reporter:
            koichik koichik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development