Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
examsAndAdmissions
Commits
21f09166
Commit
21f09166
authored
1 year ago
by
Radheshhathwar
Browse files
Options
Download
Patches
Plain Diff
Attendance null check changes
parent
4d9d7894
github/fork/ruksana2808/filter_bug_examCycle
development
1 merge request
!179
Attendance null check changes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/tarento/upsmf/examsAndAdmissions/service/DataImporterService.java
+3
-2
...upsmf/examsAndAdmissions/service/DataImporterService.java
with
3 additions
and
2 deletions
+3
-2
src/main/java/com/tarento/upsmf/examsAndAdmissions/service/DataImporterService.java
+
3
−
2
View file @
21f09166
...
...
@@ -86,7 +86,7 @@ public class DataImporterService {
String
columnName
=
columnNames
.
get
(
columnIndex
);
try
{
if
(
currentCell
!=
null
)
{
// Add this null check
if
(
currentCell
!=
null
)
{
switch
(
currentCell
.
getCellType
())
{
case
STRING:
jsonObject
.
put
(
columnName
,
currentCell
.
getStringCellValue
());
...
...
@@ -119,9 +119,10 @@ public class DataImporterService {
}
return
null
;
})
.
filter
(
Objects:
:
nonN
ull
)
// Filter out rows with null values
.
filter
(
jsonObj
->
jsonObj
!=
n
ull
)
// Filter out rows with null values
.
collect
(
Collectors
.
collectingAndThen
(
Collectors
.
toList
(),
JSONArray:
:
new
));
return
jsonArray
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets