Questions tagged [null]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10
votes
4answers
764 views

Can apex:param pass null for Integers?

I'm trying to reset an Integer value to null, but it is converted to 0. <apex:actionFunction action="{!doSomething}" name="doSomething" rerender="nothing"> <apex:param name="indexValue" ...
0
votes
2answers
311 views

<apex: textarea> return null value when trying to pass its value as a prameter

In visualforce, I am iterating through a wrapper class and for each iteration, a textbox is displayed. My code snippet is: <apex:repeat value="{!comList}" var="com"> <b>{!com.comment.name}...
0
votes
1answer
81 views

Attempt to dereference null object error

I have below controller where I get Attempt to dereference a null object error at ProdIds.add(c.id); Line. Error Code public TestController(ApexPages.StandardController stdCtrl) { ...
2
votes
2answers
935 views

Assertion failure that a null pointer exception is caught

I am doing some test code right now. In my Apex code I have a method that try-catches a DMLException and afterwards does a general Exception catch. In my test code I am successfully managing to test ...
0
votes
1answer
4k views

A flow trigger failed to execute with Version ID -

I have one Process builder which calls Flow which call another flow. I came across following two situations on Case - ERROR Message 1: Workflow Action failed to Trigger Flow The record ...
14
votes
4answers
24k views

What Criteria to use in Process Builder to check for NULL reference?

I have a lookup field on account - for other accounts - Name: Account Parent Tiered OBJ How do I check in Process Builder that it's actually empty? Using the Global Constant NULL or: IS Null true ...
0
votes
1answer
56 views

Attempt to dereference a null object

I am running tests on the following code: global class CarrierTrackingBatch implements Database.Batchable<sObject>, Database.AllowsCallouts{ global String ShippingStatus; global String query; ...
0
votes
2answers
57 views

Why am I getting NULL pointer exception in line 14

I have created a simple VF search page which returns a list of email addresses but getting NULL pointer exception in line 14 when I execute the search in VF page. Seeing that line 14 is the line ...
0
votes
1answer
53 views

How to create a formula to output a number for a picklist value, and reject an N/A value?

In creating a formula to stamp the numerical value of a picklist, I am having difficulty with an "N/A" value. Right now, the picklist has 0,1,2,3,4,5,6,7,8,9,10,N/A as options to choose from. I am ...
1
vote
0answers
102 views

Stop from entering a null value in apex inline edit

I have the following code <apex:outputField value="{!pubAut.AcceptedDate__c}"> <apex:inlineEditSupport event="ondblclick" rendered="{!(pubAut.AcceptedDate__c!=NUll&&pubAut....
0
votes
1answer
60 views

Error Attempt to de-reference a null object for test class

For the method below, I have written test class. But getting error at fetchInit f = new fetchInit(); inside the method. Error: Attempt to de-reference a null object. How can I avoid this error. Also ...