mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Fix NPE with null field list
This commit is contained in:
@ -64,7 +64,7 @@ public class QFieldSection
|
|||||||
this.label = label;
|
this.label = label;
|
||||||
this.icon = icon;
|
this.icon = icon;
|
||||||
this.tier = tier;
|
this.tier = tier;
|
||||||
this.fieldNames = new MutableList<>(fieldNames);
|
this.fieldNames = fieldNames == null ? null : new MutableList<>(fieldNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ public class QFieldSection
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
this.icon = icon;
|
this.icon = icon;
|
||||||
this.tier = tier;
|
this.tier = tier;
|
||||||
this.fieldNames = new MutableList<>(fieldNames);
|
this.fieldNames = fieldNames == null ? null : new MutableList<>(fieldNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -213,7 +213,7 @@ public class QFieldSection
|
|||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public void setFieldNames(List<String> fieldNames)
|
public void setFieldNames(List<String> fieldNames)
|
||||||
{
|
{
|
||||||
this.fieldNames = fieldNames;
|
this.fieldNames = fieldNames == null ? null : new MutableList<>(fieldNames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user