Index: InlineStackingLayoutManager.java
===================================================================
--- InlineStackingLayoutManager.java	(revision 817715)
+++ InlineStackingLayoutManager.java	(working copy)
@@ -277,8 +277,10 @@
         KnuthElement oldElement;
         while (oldListIterator.hasNext()) {
             oldElement = (KnuthElement) oldListIterator.next();
-            oldElement.setPosition
-                (oldElement.getPosition().getPosition());
+            if (oldElement.getPosition() != null) {
+                 oldElement.setPosition
+                    (oldElement.getPosition().getPosition());
+            }
         }
         // reset the iterator
         oldListIterator = oldList.listIterator();
