Java null Pointer Exception when deleting record in an editable table

So, I have this editable table(1) in which whenever you save a record and asses, that if this record goes down to this condition, it copies and paste to the editable table(2), then removed the current record in editable table(1). Like it is separating this kind of record. Anyway after it transfer this record, I add another record again to the editable table(1) then save it, now whenever I delete this newly created record it is removed in the editable table (1), and shows this error in a few seconds '



java.lang.NullPointerException
java.lang.NullPointerException: java.lang.NullPointerException
   at outsystems.hubedition.webwidgets.renderkit.os_controls.HtmlComboBoxRenderer.innerEncodeBegin(Unknown Source)
   at outsystems.hubedition.webwidgets.renderkit.os_controls.HtmlComboBoxRenderer.innerEncodeBegin(Unknown Source)
   at outsystems.hubedition.webwidgets.renderkit.AbstractHtmlRendererWithExtendedProperties.innerEncodeBegin(Unknown Source)
   at outsystems.hubedition.webwidgets.renderkit.AbstractHtmlWebRenderer.encodeBegin(Unknown Source)
   at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:864)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1854)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
   at outsystems.hubedition.webwidgets.uicomponent.os_controls.PlaceholderArgumentComponent.actuallyEncodeAll(Unknown Source)
   at outsystems.hubedition.webwidgets.renderkit.os_controls.HtmlPlaceholderRenderer.encodeChildren(Unknown Source)
   at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
   at javax.faces.render.Renderer.encodeChildren(Renderer.java:176)
   at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:889)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1856)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
   at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
   at com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:431)
   at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:232)
   at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:133)
   at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)
   at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)
   at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
   at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:219)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:647)
   at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
   at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130)
   at outsystems.hubedition.webwidgets.BaseRequestStartupFilter.doFilter(Unknown Source)
   at osprocurement.RequestStartupFilter.doFilter(Unknown Source)
   at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
   at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
   at outsystems.hubedition.webwidgets.filters.HttpContextFilter.doFilter(Unknown Source)
   at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
   at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
   at outsystems.hubedition.webwidgets.filters.CacheControlFilter.doFilter(Unknown Source)
   at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
   at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132)
   at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85)
   at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)
   at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
   at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
   at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
   at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
   at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)
   at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
   at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
   at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63)
   at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)
   at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)
   at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)
   at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
   at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
   at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
   at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
   at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)
   at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247)
   at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76)
   at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166)
   at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)
   at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:765)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   at java.lang.Thread.run(Thread.java:748)

'.

Any ideas why this occurs?
Thank you in advance.


Not sure what's causing the error, if you could share an oml with an example maybe we can help you understand why this occurs.


Now, since you are deleting the record from the editable table(1) and then adding a new one, you can just reset the values of the record instead of deleting it.

Gabriel Cardoso wrote:

Not sure what's causing the error, if you could share an oml with an example maybe we can help you understand why this occurs.


Now, since you are deleting the record from the editable table(1) and then adding a new one, you can just reset the values of the record instead of deleting it.

Thank you for the respond, The problem with this is, we can't list clear the editable table (1) because some records might not fall to condition we have. We just remove the current record to the editable table(1). 


Hello again.

I was not talking about clear the list. I meant reset the current record as in set Id = nullidentifier(), integer = 0, dates=NullDate() ...