Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Alignment API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
moex
Alignment API
Commits
482b1f5e
Commit
482b1f5e
authored
11 years ago
by
Nicolas Guillouet
Browse files
Options
Downloads
Patches
Plain Diff
Fix NullPointerException on translateMessage
parent
ac30d1b7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fr/inrialpes/exmo/align/impl/BasicAlignment.java
+6
-2
6 additions, 2 deletions
src/fr/inrialpes/exmo/align/impl/BasicAlignment.java
with
6 additions
and
2 deletions
src/fr/inrialpes/exmo/align/impl/BasicAlignment.java
+
6
−
2
View file @
482b1f5e
...
...
@@ -59,7 +59,7 @@ import fr.inrialpes.exmo.ontowrap.OntowrapException;
* In version 3.0 this class is virtually abstract.
* But it cannot be declared abstract because it uses its own constructor.
*
* @author J
r
me Euzenat, David Loup, Raphal Troncy
* @author J
érô
me Euzenat, David Loup, Rapha
ë
l Troncy
* @version $Id$
*/
...
...
@@ -830,7 +830,7 @@ public class BasicAlignment implements Alignment {
for
(
Map
.
Entry
<
Object
,
Object
>
m
:
prefix
.
entrySet
()
)
{
if
(
m
.
getKey
()
!=
null
)
{
mainQuery
=
Pattern
.
compile
(
"<"
+
m
.
getValue
()+
"([A-Za-z0-9_-]+)>"
).
matcher
(
mainQuery
).
replaceAll
(
m
.
getKey
()+
":$1"
);
mainQuery
=
"PREFIX "
+
m
.
getKey
()+
": <"
+
m
.
getValue
()+
">
.
\n"
+
mainQuery
;
mainQuery
=
"PREFIX "
+
m
.
getKey
()+
": <"
+
m
.
getValue
()+
"> \n"
+
mainQuery
;
}
}
...
...
@@ -843,8 +843,12 @@ public class BasicAlignment implements Alignment {
try
{
// The second part replaces the named items by their counterparts
for
(
Cell
cell
:
this
){
URI
uri1
=
cell
.
getObject1AsURI
(
this
);
URI
uri2
=
cell
.
getObject2AsURI
(
this
);
if
(
uri1
!=
null
&&
uri2
!=
null
){
result
=
result
.
replaceAll
(
cell
.
getObject1AsURI
(
this
).
toString
(),
cell
.
getObject2AsURI
(
this
).
toString
()
);
}
}
}
catch
(
AlignmentException
alex
)
{
logger
.
debug
(
"IGNORED AlignmentException {}"
,
alex
);
...
...
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