Skip to content

Commit 316494b

Browse files
author
Julian Kast
committed
Add check to prevent NPE
1 parent f92e5b6 commit 316494b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)