@@ -0,0 +1,1755 @@
+package com.google.code.morphia.converters;%0A/**%0A * Copyright (C) 2010 Olafur Gauti Gudmundsson%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *         http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0A%0Aimport static org.junit.Assert.assertArrayEquals;%0Aimport static org.junit.Assert.fail;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Ignore;%0Aimport org.junit.Test;%0A%0Aimport com.google.code.morphia.TestBase;%0Aimport com.google.code.morphia.annotations.Embedded;%0Aimport com.google.code.morphia.annotations.Entity;%0Aimport com.google.code.morphia.annotations.Id;%0Aimport com.google.code.morphia.annotations.Property;%0A%0A/**%0A *%0A */%0Apublic class IterableConverterNullPointerExceptionTest extends TestBase%0A%7B%0A%09@Entity%0A%09static class TestEntity %7B%0A%09%09@Id String id;%0A%09%09String%5B%5D array;%0A%09%7D%0A%0A%09@Before @Override%0A%09public void setUp() %7B%0A%09%09super.setUp();%0A%09%09morphia.map(TestEntity.class);%0A%09%7D%0A%0A%09@Test%0A    public void testIt() throws Exception%0A    %7B%0A        TestEntity te = new TestEntity();%0A        te.array = new String%5B%5D%7B null, %22notNull%22, null %7D;%0A    %09ds.save(te);%0A%0A        TestEntity te2 = null;%0A        try %7B%0A            te2 = ds.find(TestEntity.class).get();%0A        %7D catch (RuntimeException e) %7B%0A            e.printStackTrace();%0A            fail();%0A        %7D%0A        assertArrayEquals(te.array, te2.array);%0A    %7D%0A%7D%0A

test for issue 111