]> AND Public Git Repository - simgrid.git/blobdiff - src/bindings/java/jmsg_as.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' into 'master'
[simgrid.git] / src / bindings / java / jmsg_as.cpp
index ba413612dcff884cc86e5205165e4328853c61c8..b87a5e9472861c5dbcf7503631c835dc4b5e000c 100644 (file)
@@ -1,6 +1,6 @@
 /* Java bindings of the NetZones.                                           */
 
-/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -102,9 +102,9 @@ JNIEXPORT jobject JNICALL Java_org_simgrid_msg_As_getProperty(JNIEnv *env, jobje
     jxbt_throw_notbound(env, "as", jas);
     return nullptr;
   }
-  const char *name = env->GetStringUTFChars(static_cast<jstring>(jname), 0);
+  const char* name = env->GetStringUTFChars(static_cast<jstring>(jname), nullptr);
 
-  const char* property = MSG_zone_get_property_value(as, name);
+  const char* property = sg_zone_get_property_value(as, name);
   if (not property) {
     return nullptr;
   }