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
bonita
bonita-studio
Commits
af684f11
Commit
af684f11
authored
Nov 03, 2014
by
Romain Bioteau
Browse files
BS-11286
Handle null case properly
parent
3cb433fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
bundles/plugins/org.bonitasoft.studio.importer.bar/src/org/bonitasoft/studio/importer/bar/processor/CustomConnectorMigrator.java
View file @
af684f11
...
...
@@ -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
...
...
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