A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't dereference null pointer.
[simgrid.git]
/
src
/
surf
/
surf_routing_generic.cpp
diff --git
a/src/surf/surf_routing_generic.cpp
b/src/surf/surf_routing_generic.cpp
index
908e46e
..
92133dd
100644
(file)
--- a/
src/surf/surf_routing_generic.cpp
+++ b/
src/surf/surf_routing_generic.cpp
@@
-234,7
+234,8
@@
sg_platf_route_cbarg_t AsGeneric::getBypassRoute(RoutingEdgePtr src,
if (src == NULL || dst == NULL)
xbt_die("Ask for route \"from\"(%s) or \"to\"(%s) no found at AS \"%s\"",
if (src == NULL || dst == NULL)
xbt_die("Ask for route \"from\"(%s) or \"to\"(%s) no found at AS \"%s\"",
- src->getName(), dst->getName(), p_name);
+ src ? src->getName() : "(null)",
+ dst ? dst->getName() : "(null)", p_name);
src_as = src->getRcComponent();
dst_as = dst->getRcComponent();
src_as = src->getRcComponent();
dst_as = dst->getRcComponent();