Commit af684f11 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

BS-11286

Handle null case properly
parent 3cb433fc
......@@ -5,12 +5,12 @@
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2.0 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
......@@ -123,7 +123,7 @@ public class CustomConnectorMigrator {
BonitaStudioLog.debug("Searching for custom connector in " + tmpConnectorJarFile.getName() + "...", BarImporterPlugin.PLUGIN_ID);
final List<String> connectorClassnames = BarReaderUtil.findCustomConnectorClassName(tmpConnectorJarFile);
if (connectorClassnames.isEmpty()) {
if (connectorClassnames == null || connectorClassnames.isEmpty()) {
BonitaStudioLog.debug("No custom connector found in:" + tmpConnectorJarFile.getName(), BarImporterPlugin.PLUGIN_ID);
} else {
for (final String connectorClassname : connectorClassnames) {
......@@ -154,7 +154,7 @@ public class CustomConnectorMigrator {
/***
* Create an URLClassloader with all jar inside the archive file
*
*
* @param archiveFile
* @param tmpConnectorJarFile
* @return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment