1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 17:25:38 +02:00

null pointer check for src and host encodings

This commit is contained in:
David McKnight 2006-06-05 19:57:58 +00:00
parent 39601be439
commit bbb239d566

View file

@ -224,7 +224,7 @@ public class DStoreFileService extends AbstractDStoreService implements IFileSer
String byteStreamHandlerId = getByteStreamHandlerId();
String remotePath = remoteParent + getSeparator(remoteParent) + remoteFile;
if (!isBinary)
if (!isBinary && hostEncoding != null)
{
String tempStr = new String(buffer, 0, bytesRead);
@ -393,7 +393,7 @@ public class DStoreFileService extends AbstractDStoreService implements IFileSer
String byteStreamHandlerId = getByteStreamHandlerId();
String remotePath = remoteParent + getSeparator(remoteParent) + remoteFile;
if (!isBinary)
if (!isBinary && srcEncoding != null && hostEncoding != null)
{
String tempStr = new String(buffer, 0, bytesRead, srcEncoding);