Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
histream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Raphael
histream
Commits
437801bb
Commit
437801bb
authored
Jan 24, 2017
by
R.W.Majeed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More verbose exceptions
parent
be90af66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
histream-import/src/main/java/de/sekmi/histream/etl/config/Column.java
...rt/src/main/java/de/sekmi/histream/etl/config/Column.java
+5
-1
No files found.
histream-import/src/main/java/de/sekmi/histream/etl/config/Column.java
View file @
437801bb
...
...
@@ -228,7 +228,11 @@ public abstract class Column<T> {
Objects
.
requireNonNull
(
colMap
);
Objects
.
requireNonNull
(
row
);
Integer
index
=
colMap
.
indexOf
(
this
);
Objects
.
requireNonNull
(
index
);
Objects
.
requireNonNull
(
index
,
"Column not found: "
+
getName
());
// error message if rows not matching
if
(
index
>=
row
.
length
){
throw
new
ParseException
(
"Column index "
+
index
+
" ("
+
getName
()+
") out of bounds. Row length="
+
row
.
length
);
}
Object
rowval
=
row
[
index
];
// string processing (na, regex-replace, mapping) only performed on string values
if
(
rowval
==
null
||
rowval
instanceof
String
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment