Skip to content

Commit 023a5bc

Browse files
Julian Kastjoeygrover
authored andcommitted
Add check to prevent NPE
1 parent dcb0e61 commit 023a5bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/src/main/java/com/smartdevicelink/managers/ManagerUtility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static int getMaxNumberOfMainFieldLines(final WindowCapability windowCapa
8080
if (windowCapability != null && windowCapability.getTextFields() != null) {
8181
for (TextField field : windowCapability.getTextFields()) {
8282
int fieldNumber = 0;
83-
if(field != null) {
83+
if(field != null && field.getName() != null) {
8484
switch (field.getName()) {
8585
case mainField1:
8686
fieldNumber = 1;

0 commit comments

Comments
 (0)