Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
7fb0cef9
Commit
7fb0cef9
authored
Nov 28, 2016
by
Moustakas
Browse files
Fix Null pointer Exception
parent
85708a4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-utils/src/main/scala/nl/lumc/sasc/biopet/utils/ConfigUtils.scala
View file @
7fb0cef9
...
...
@@ -150,7 +150,8 @@ object ConfigUtils extends Logging {
def
yamlToMap
(
file
:
File
)
:
Map
[
String
,
Any
]
=
{
val
yaml
=
new
Yaml
()
val
a
=
yaml
.
load
(
scala
.
io
.
Source
.
fromFile
(
file
).
reader
())
ConfigUtils
.
any2map
(
a
)
if
(
a
==
null
)
throw
new
IllegalStateException
(
s
"File '$file' is an empty file"
)
else
ConfigUtils
.
any2map
(
a
)
}
/** Convert json to native scala map/values */
...
...
Write
Preview
Supports
Markdown
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