Skip to content

Commit 7a914c6

Browse files
authored
Merge pull request #1021 from forcedotcom/d/W-12494075-msg
CHANGE (GraphEngine): @W-12494075@: Adjusted messages for ApexNullPointerExceptionRule.
2 parents a2e6aa6 + ab3630a commit 7a914c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sfge/src/main/java/com/salesforce/config/UserFacingMessages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ public final class UserFacingMessages {
99

1010
public static final class RuleDescriptions {
1111
public static final String APEX_NULL_POINTER_EXCEPTION_RULE =
12-
"Identifies operations with a high likelihood of throwing a NullPointerException";
12+
"Identfies Apex operations that dereference null objects and throw NullPointerExceptions.";
1313
public static final String UNIMPLEMENTED_TYPE_RULE =
1414
"Identifies abstract classes and interfaces that are non-global and don't have implementations or extensions.";
1515
}
1616

1717
public static final class RuleViolationTemplates {
1818
public static final String APEX_NULL_POINTER_EXCEPTION_RULE =
19-
"%s is likely to throw a NullPointerException";
19+
"%s dereferences a null object. Review your code and add a null check.";
2020
/** CRUD/FLS Violation messages */
2121
// format: "CRUD" or "FLS", DML operation, Object type, Field information
2222
public static final String MISSING_CRUD_FLS_CHECK =

0 commit comments

Comments
 (0)