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
joram
joram
Commits
27279590
Commit
27279590
authored
Jun 15, 2010
by
Guillaume Surrel
Browse files
Fix NPE if there is no property defined on creation.
parent
19463d03
Changes
2
Hide whitespace changes
Inline
Side-by-side
joram/src/org/objectweb/joram/mom/dest/AcquisitionQueueImpl.java
View file @
27279590
...
...
@@ -78,6 +78,10 @@ public class AcquisitionQueueImpl extends QueueImpl implements AcquisitionQueueI
if
(
logger
.
isLoggable
(
BasicLevel
.
DEBUG
))
{
logger
.
log
(
BasicLevel
.
DEBUG
,
"AcquisitionQueueImpl.<init> prop = "
+
properties
);
}
if
(
properties
==
null
)
{
throw
new
RequestException
(
"No property found: At least "
+
AcquisitionModule
.
CLASS_NAME
+
" property must be defined on queue creation."
);
}
this
.
properties
=
properties
;
acquisitionClassName
=
properties
.
getProperty
(
AcquisitionModule
.
CLASS_NAME
);
...
...
joram/src/org/objectweb/joram/mom/dest/AcquisitionTopicImpl.java
View file @
27279590
...
...
@@ -78,6 +78,10 @@ public class AcquisitionTopicImpl extends TopicImpl implements AcquisitionTopicI
if
(
logger
.
isLoggable
(
BasicLevel
.
DEBUG
))
{
logger
.
log
(
BasicLevel
.
DEBUG
,
"AcquisitionTopicImpl.<init> prop = "
+
properties
);
}
if
(
properties
==
null
)
{
throw
new
RequestException
(
"No property found: At least "
+
AcquisitionModule
.
CLASS_NAME
+
" property must be defined on topic creation."
);
}
this
.
properties
=
properties
;
acquisitionClassName
=
properties
.
getProperty
(
AcquisitionModule
.
CLASS_NAME
);
...
...
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