Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Commits
169f971c
Unverified
Commit
169f971c
authored
6 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
BUG: NullPointer for message code
parent
a79fdd29
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
conf/usersources.ini.template
+1
-1
1 addition, 1 deletion
conf/usersources.ini.template
src/main/java/caosdb/server/entity/Message.java
+4
-4
4 additions, 4 deletions
src/main/java/caosdb/server/entity/Message.java
with
5 additions
and
5 deletions
conf/usersources.ini.template
+
1
−
1
View file @
169f971c
...
@@ -32,4 +32,4 @@ default_status = ACTIVE
...
@@ -32,4 +32,4 @@ default_status = ACTIVE
;exclude.group = [uncomment and put excluded groups here]
;exclude.group = [uncomment and put excluded groups here]
;it is necessary to add at least one admin
;it is necessary to add at least one admin
user.
{a user}
.roles = administration
;
user.
[uncomment a set a username here]
.roles = administration
This diff is collapsed.
Click to expand it.
src/main/java/caosdb/server/entity/Message.java
+
4
−
4
View file @
169f971c
...
@@ -79,20 +79,20 @@ public class Message extends Exception implements Comparable<Message>, ToElement
...
@@ -79,20 +79,20 @@ public class Message extends Exception implements Comparable<Message>, ToElement
this
(
type
,
code
,
null
,
null
);
this
(
type
,
code
,
null
,
null
);
}
}
public
Message
(
final
i
nt
code
,
final
String
description
)
{
public
Message
(
final
I
nt
eger
code
,
final
String
description
)
{
this
(
"Message"
,
code
,
description
,
null
);
this
(
"Message"
,
code
,
description
,
null
);
}
}
public
Message
(
final
MessageType
type
,
final
i
nt
code
,
final
String
description
)
{
public
Message
(
final
MessageType
type
,
final
I
nt
eger
code
,
final
String
description
)
{
this
(
type
.
toString
(),
code
,
description
,
null
);
this
(
type
.
toString
(),
code
,
description
,
null
);
}
}
public
Message
(
public
Message
(
final
MessageType
type
,
final
i
nt
code
,
final
String
description
,
final
String
body
)
{
final
MessageType
type
,
final
I
nt
eger
code
,
final
String
description
,
final
String
body
)
{
this
(
type
.
toString
(),
code
,
description
,
body
);
this
(
type
.
toString
(),
code
,
description
,
body
);
}
}
public
Message
(
final
String
type
,
final
i
nt
code
,
final
String
description
)
{
public
Message
(
final
String
type
,
final
I
nt
eger
code
,
final
String
description
)
{
this
(
type
,
code
,
description
,
null
);
this
(
type
,
code
,
description
,
null
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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