ItEr33S08ValidacionEProbasFuncionaisItEr32S09: Fixing possible null pointer dereferences
This commit is contained in:
parent
1e1d462412
commit
3d8820d779
1 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ public class TaskComponent extends Div implements AfterCompose {
|
|||
|
||||
String[] requestData = request.getData();
|
||||
|
||||
if ((requestData != null) && (requestData.length != 2)) {
|
||||
if (requestData == null || requestData.length != 2) {
|
||||
throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
|
||||
new Object[] { Objects.toString(requestData), this });
|
||||
} else {
|
||||
|
|
@ -134,7 +134,7 @@ public class TaskComponent extends Div implements AfterCompose {
|
|||
|
||||
String[] requestData = request.getData();
|
||||
|
||||
if ((requestData != null) && (requestData.length != 1)) {
|
||||
if (requestData == null || requestData.length != 1) {
|
||||
throw new UiException(MZk.ILLEGAL_REQUEST_WRONG_DATA,
|
||||
new Object[] { Objects.toString(requestData), this });
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue