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

      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)
      

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

          shot added a comment -

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

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

          shot added a comment -

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

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

          shot added a comment -

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

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

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

              Created:
              Updated:
              Resolved: