<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Null Pointer Exception while filling out a text field</title><link>https://community.appian.com/discussions/f/user-interface/38779/null-pointer-exception-while-filling-out-a-text-field</link><description>Hello! 
 Does anyone know why a Null Exception Error is happening at this page? (see video) This is a form that&amp;#39;s using a very simple logic for the text field. I checked the logs and didn&amp;#39;t get anything there, so I tried remapping the record fields. That</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Null Pointer Exception while filling out a text field</title><link>https://community.appian.com/thread/146622?ContentTypeID=1</link><pubDate>Wed, 26 Mar 2025 16:48:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e92225dc-3b32-4a46-bbc3-7089d251b6a5</guid><dc:creator>Tamara Saadeh</dc:creator><description>&lt;p&gt;It was happening in that interface. Got it fixed and outlined in the reply above. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Null Pointer Exception while filling out a text field</title><link>https://community.appian.com/thread/146621?ContentTypeID=1</link><pubDate>Wed, 26 Mar 2025 16:48:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ab76e28b-343d-4255-b603-49da84700638</guid><dc:creator>Tamara Saadeh</dc:creator><description>&lt;p&gt;Checked the logs and found nothing there. I did fix it though! I&amp;#39;ll include the fix on this reply since I&amp;#39;m unable to update my post&lt;/p&gt;
&lt;p&gt;FIX:&lt;/p&gt;
&lt;p&gt;I created two local variables on the parent interface, which then got sent down to the children interfaces, all the way down to the interface where the textfield is erroring out.&lt;/p&gt;
&lt;p&gt;Instead of saving directly to the record as in the original post, I saved to the local variable getting passed down from the parent interface as rule inputs.&lt;/p&gt;
&lt;p&gt;In the parent interface&amp;#39;s save expression, I basically used a save() where the local variables were mapped to the fields there. Below is a screenshot of what I&amp;#39;m talking about&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/13/pastedimage1743007688168v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;crossed out some values for client confidentiality purposes&lt;/p&gt;
&lt;p&gt;Thank you &lt;a href="/members/stefanhelzle0001"&gt;Stefan Helzle&lt;/a&gt;&amp;nbsp; for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Null Pointer Exception while filling out a text field</title><link>https://community.appian.com/thread/146576?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 23:26:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2c3a49f5-70f0-4a57-b080-9fad3e4be5ce</guid><dc:creator>shivakanthreddyp0001</dc:creator><description>&lt;p&gt;Is this text field inside gf_uisectionotherdetails interface ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Null Pointer Exception while filling out a text field</title><link>https://community.appian.com/thread/146572?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 20:22:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f28d96b6-4cfe-4093-90c6-2dee5291fbe5</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Any details in the tomcat stdout log file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Null Pointer Exception while filling out a text field</title><link>https://community.appian.com/thread/146571?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 20:18:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d13dcb2d-2670-4f2b-8703-d418241f7923</guid><dc:creator>Tamara Saadeh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for looking into this! You&amp;#39;re right, it is getting passed from two other interfaces. The record is being passed from the parent interface, and then all the way down to this interface. I tried doing the default value and it was giving me the same error :/ I came up with a fix where I save the value in a local variable which is getting passed down from the parent, and then on the parent level, I save that local variable on the record, which removed the error from text field, but then when you click the action button to create the account, it errors out again, which makes me think the record itself is compromised? Not sure.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyway, TLDR: working on it still and will update this discussion if I come up with fix.&lt;/p&gt;
&lt;p&gt;Thank you so much for your help again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Null Pointer Exception while filling out a text field</title><link>https://community.appian.com/thread/146569?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 18:55:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:29a81c1a-950d-4752-8783-27fcbea775fb</guid><dc:creator>VarunTejaGurrapu</dc:creator><description>&lt;p&gt;HI &lt;a href="/members/tamaras6727"&gt;Tamara Saadeh&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;The &lt;strong&gt;&lt;code data-start="437" data-end="444"&gt;value&lt;/code&gt;&lt;/strong&gt; property of &lt;strong&gt;&lt;code data-start="457" data-end="470"&gt;a!textField&lt;/code&gt; &lt;/strong&gt;might be null, and some operations are being performed on it without handling null cases.&lt;br /&gt;Since this rule is called by others, check if data is being passed correctly between them.&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t see any mistake made in code, maybe due to null data being passed into v&lt;strong&gt;alue&lt;/strong&gt;/&lt;strong&gt;saveInto&lt;/strong&gt;&amp;nbsp; parameter.&lt;br /&gt;&lt;br /&gt;&lt;strong data-start="245" data-end="282"&gt;Ensure &lt;code data-start="254" data-end="268"&gt;ri!otherUser&lt;/code&gt; is not null&lt;/strong&gt; before accessing &lt;strong&gt;&lt;code data-start="300" data-end="317"&gt;.companyWebsite&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/strong&gt;write &lt;strong&gt;value&lt;/strong&gt; :&amp;nbsp;a!defaultValue(ri!otherUser.companyWebsite, &amp;quot;&amp;quot;),&amp;nbsp; &amp;nbsp;to avoid null values, try using &amp;quot;&amp;quot; in validations instead of {}.&lt;br /&gt;&lt;br /&gt;Hope this helps you!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>